Skip to content

Commit

Permalink
fix string size
Browse files Browse the repository at this point in the history
Signed-off-by: guo-shaoge <shaoge1994@163.com>
  • Loading branch information
guo-shaoge committed Jan 14, 2025
1 parent e500a81 commit ff696d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbms/src/Columns/ColumnString.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ class ColumnString final : public COWPtrHelper<IColumn, ColumnString>

inline const char * deserializeAndInsertFromArena(const char * pos, const TiDB::TiDBCollatorPtr & collator) override
{
const size_t string_size = *reinterpret_cast<const size_t *>(pos);
// const size_t string_size = *reinterpret_cast<const size_t *>(pos);
const UInt32 string_size = *reinterpret_cast<const UInt32 *>(pos);
pos += sizeof(string_size);
if (likely(collator != nullptr))
insertData(pos, string_size);
Expand Down

0 comments on commit ff696d3

Please sign in to comment.