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

zzcclp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 0aa1620e9b [GLUTEN-12185][CH] Guard missing prepared set in parquet 
index filter (#12186)
0aa1620e9b is described below

commit 0aa1620e9b473f7963f64821beb18bb3325849ff
Author: lgbo <[email protected]>
AuthorDate: Fri May 29 18:01:37 2026 +0800

    [GLUTEN-12185][CH] Guard missing prepared set in parquet index filter 
(#12186)
    
    [GLUTEN-12185][CH] Guard missing prepared set in parquet index filter
---
 cpp-ch/local-engine/Storages/Parquet/ColumnIndexFilter.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpp-ch/local-engine/Storages/Parquet/ColumnIndexFilter.cpp 
b/cpp-ch/local-engine/Storages/Parquet/ColumnIndexFilter.cpp
index e994af53d7..7a14d715c8 100644
--- a/cpp-ch/local-engine/Storages/Parquet/ColumnIndexFilter.cpp
+++ b/cpp-ch/local-engine/Storages/Parquet/ColumnIndexFilter.cpp
@@ -808,10 +808,10 @@ bool tryPrepareSetIndex(const 
DB::RPNBuilderFunctionTreeNode & func, DB::GlutenP
 {
     const auto right_arg = func.getArgumentAt(1);
     const auto future_set = right_arg.tryGetPreparedSet();
-    if (future_set->getTypes().size() != 1)
+    if (!future_set)
         return false;
 
-    if (!future_set)
+    if (future_set->getTypes().size() != 1)
         return false;
 
     const auto prepared_set = 
future_set->buildOrderedSetInplace(right_arg.getTreeContext().getQueryContext());
@@ -990,4 +990,4 @@ RowRanges ColumnIndexFilter::calculateRowRanges(const 
ColumnIndexStore & index_s
     return rpn_stack[0];
 }
 }
-#endif //USE_PARQUET
\ No newline at end of file
+#endif //USE_PARQUET


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to