Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
Signed-off-by: guo-shaoge <[email protected]>
  • Loading branch information
guo-shaoge committed Jan 7, 2025
1 parent 19982d3 commit 3878b4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions dbms/src/Columns/ColumnString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,6 @@ void ColumnString::deserializeAndInsertFromPosImpl(
memcpySmallAllowReadWriteOverflow15(&chars[char_size], pos[i], str_size);
char_size += str_size;

// todo add unit test
if constexpr (add_terminating_zero)
{
chars[char_size] = 0;
Expand Down Expand Up @@ -1018,7 +1017,6 @@ void ColumnString::deserializeAndInsertFromPosForColumnArrayImpl(
{
for (size_t i = 0; i < size; ++i)
{
// TODO add unit test
for (size_t j = array_offsets[start_point + i - 1]; j < array_offsets[start_point + i]; ++j)
{
UInt32 str_size;
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Columns/IColumn.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class IColumn : public COWPtr<IColumn>
/// while (xxx)
/// {
/// for (auto & column_ptr : mutable_columns)
/// column_ptr->deserializeAndInsertFromPosUnique(pos, align_buffer, true);
/// column_ptr->deserializeAndInsertFromPos(pos, align_buffer, true);
/// }
/// for (auto & column_ptr : mutable_columns)
/// column_ptr->flushNTAlignBuffer();
Expand Down

0 comments on commit 3878b4b

Please sign in to comment.