[fix](like)the dictionary column should call get_shrink_value to get correct string value (#13032)
* [fix](like)the dictionary column should call get_shrink_value to get correct string value
This commit is contained in:
@ -148,7 +148,7 @@ uint16_t LikeColumnPredicate<is_vectorized>::evaluate(const vectorized::IColumn&
|
||||
for (uint16_t i = 0; i != size; i++) {
|
||||
uint16_t idx = sel[i];
|
||||
sel[new_size] = idx;
|
||||
StringValue cell_value = nested_col_ptr->get_value(data_array[idx]);
|
||||
StringValue cell_value = nested_col_ptr->get_shrink_value(data_array[idx]);
|
||||
unsigned char flag = 0;
|
||||
(_state->function)(const_cast<vectorized::LikeSearchState*>(&_like_state),
|
||||
cell_value, pattern, &flag);
|
||||
|
||||
@ -152,7 +152,8 @@ private:
|
||||
vectorized::ColumnDictionary<vectorized::Int32>>(column);
|
||||
auto& data_array = nested_col_ptr->get_data();
|
||||
for (uint16_t i = 0; i < size; i++) {
|
||||
StringValue cell_value = nested_col_ptr->get_value(data_array[i]);
|
||||
StringValue cell_value =
|
||||
nested_col_ptr->get_shrink_value(data_array[i]);
|
||||
if constexpr (is_and) {
|
||||
unsigned char flag = 0;
|
||||
(_state->function)(
|
||||
|
||||
Reference in New Issue
Block a user