mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix msan test.
This commit is contained in:
parent
c111836ada
commit
4ec8012e27
@ -79,7 +79,16 @@ void IColumn::compareImpl(const Derived & rhs, size_t rhs_row_num,
|
||||
if constexpr (use_indexes)
|
||||
row = indexes[i];
|
||||
|
||||
compare_results[row] = compareAt(row, rhs_row_num, rhs, nan_direction_hint);
|
||||
int res = compareAt(row, rhs_row_num, rhs, nan_direction_hint);
|
||||
|
||||
/// We need to convert int to Int8. Sometimes comparison return values which do not fit in one byte.
|
||||
if (res < 0)
|
||||
compare_results[row] = -1;
|
||||
else if (res > 0)
|
||||
compare_results[row] = 1;
|
||||
else
|
||||
compare_results[row] = 0;
|
||||
|
||||
if constexpr (reversed)
|
||||
compare_results[row] = -compare_results[row];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user