Skip to content

Commit

Permalink
Added GetSize() const method for FixedStringType
Browse files Browse the repository at this point in the history
By using ColumnLowCardinalityT<ColumnFixedString>, you lose the ability to conveniently know the fixed size parameter of ColumnFixedString. Adding this method fixes this issue.
  • Loading branch information
german3w1 authored Jan 27, 2024
1 parent 157369c commit e854748
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clickhouse/types/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ class FixedStringType : public Type {

std::string GetName() const { return std::string("FixedString(") + std::to_string(size_) + ")"; }

inline size_t GetSize() const { return size_; }

private:
size_t size_;
};
Expand Down

0 comments on commit e854748

Please sign in to comment.