Skip to content

Commit

Permalink
Merge pull request ClickHouse#58318 from ClickHouse/fix-fuzzer-sparse
Browse files Browse the repository at this point in the history
Fixed logical error in CheckSortedTransform
  • Loading branch information
robot-ch-test-poll4 authored Dec 28, 2023
2 parents fbd3f7c + e15b1c6 commit ef5837a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Processors/Transforms/CheckSortedTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ void CheckSortedTransform::transform(Chunk & chunk)
}
};

/// ColumnVector tries to cast the rhs column to the same type (ColumnVector) in compareAt method.
/// And it doesn't care about the possible incompatibilities in data types
/// (for example in case when the right column is ColumnSparse)
convertToFullIfSparse(chunk);

const auto & chunk_columns = chunk.getColumns();

++rows_read;
Expand Down

0 comments on commit ef5837a

Please sign in to comment.