Skip to content

Commit

Permalink
[opt](inverted index) opt value extraction from column to string (apa…
Browse files Browse the repository at this point in the history
…che#37395)

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
  • Loading branch information
zzzxl1993 authored and seawinde committed Jul 17, 2024
1 parent 318d896 commit 010e70a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions be/src/vec/exprs/vexpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,13 @@ std::string VExpr::gen_predicate_result_sign(Block& block, const ColumnNumbers&
// Generating 'result_sign' from 'inlist' requires sorting the values.
std::set<std::string> values;
for (size_t i = 1; i < arguments.size(); i++) {
values.insert(block.get_by_position(arguments[i]).to_string(0));
const auto& entry = block.get_by_position(arguments[i]);
values.insert(entry.type->to_string(*entry.column, 0));
}
pred_result_sign += boost::join(values, ",");
} else {
pred_result_sign += block.get_by_position(arguments[1]).to_string(0);
const auto& entry = block.get_by_position(arguments[1]);
pred_result_sign += entry.type->to_string(*entry.column, 0);
}
return pred_result_sign;
}
Expand Down

0 comments on commit 010e70a

Please sign in to comment.