This is an automated email from the ASF dual-hosted git repository.

airborne pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new c6cd1e2e3d4 [opt](inverted index) opt value extraction from column to 
string (#38179)
c6cd1e2e3d4 is described below

commit c6cd1e2e3d49092960ca0d674a0b677e7043266f
Author: zzzxl <[email protected]>
AuthorDate: Wed Jul 24 15:38:41 2024 +0800

    [opt](inverted index) opt value extraction from column to string (#38179)
    
    ## Proposed changes
    
    https://github.com/apache/doris/pull/37395
---
 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]

Reply via email to