[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:
starocean999
2022-09-29 09:09:36 +08:00
committed by GitHub
parent 36bf8ad3eb
commit bc2966ed80
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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)(