Skip to content

Commit

Permalink
[optimize](match) optimize unnecessary conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzxl1993 committed Sep 14, 2023
1 parent 6fe207e commit 4d69606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/vec/functions/match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ namespace doris::vectorized {
Status FunctionMatchBase::execute_impl(FunctionContext* context, Block& block,
const ColumnNumbers& arguments, size_t result,
size_t input_rows_count) {
auto match_query_str = block.get_by_position(arguments[1]).to_string(0);
ColumnPtr& column_ptr = block.get_by_position(arguments[1]).column;
auto match_query_str = column_ptr->get_data_at(0).to_string();
std::string column_name = block.get_by_position(arguments[0]).name;
auto match_pred_column_name =
BeConsts::BLOCK_TEMP_COLUMN_PREFIX + column_name + "_match_" + match_query_str;
Expand Down

0 comments on commit 4d69606

Please sign in to comment.