Skip to content

Commit

Permalink
fix: calc_index_range like prefix append key type bug (baidu#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
wy1433 authored Aug 1, 2023
1 parent 84ef9c2 commit 5bfc1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exec/access_path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void AccessPath::calc_index_range(int64_t partition_field_id, const std::map<std
case EQ:
case LIKE_EQ:
case LIKE_PREFIX:
if (_like_prefix) {
if (_like_prefix && range.type == LIKE_PREFIX) {
if (in_records.empty()) {
left_key.append_string_prefix(range.eq_in_values[0].get_string());
right_key.append_string_prefix(range.eq_in_values[0].get_string());
Expand Down

0 comments on commit 5bfc1ba

Please sign in to comment.