This is an automated email from the ASF dual-hosted git repository.
airborne pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f6afbf73b91 [opt](inverted index) opt value extraction from column to
string (#37395)
f6afbf73b91 is described below
commit f6afbf73b913f98315be243730f17a9ad2a498ff
Author: zzzxl <[email protected]>
AuthorDate: Fri Jul 12 16:40:31 2024 +0800
[opt](inverted index) opt value extraction from column to string (#37395)
## Proposed changes
Issue Number: close #xxx
<!--Describe your changes.-->
---
be/src/vec/exprs/vexpr.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/be/src/vec/exprs/vexpr.cpp b/be/src/vec/exprs/vexpr.cpp
index 3a965c27c92..d788c8dc518 100644
--- a/be/src/vec/exprs/vexpr.cpp
+++ b/be/src/vec/exprs/vexpr.cpp
@@ -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;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]