Zoltan Borok-Nagy has posted comments on this change. ( https://gerrit.cloudera.org/25062 )
Change subject: IMPALA-15141 (part 2): Codegen expressions that involve VARIANT ...................................................................... Patch Set 3: (9 comments) Thanks for the comments! https://gerrit.cloudera.org/#/c/25062/1//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25062/1//COMMIT_MSG@36 PS1, Line 36: TOP-N, UNION : ALL and CTE con > nit: CTE Consumer nodes would also right? Done, added CTE consumer nodes https://gerrit.cloudera.org/#/c/25062/1/be/src/codegen/codegen-anyval.cc File be/src/codegen/codegen-anyval.cc: https://gerrit.cloudera.org/#/c/25062/1/be/src/codegen/codegen-anyval.cc@197 PS1, Line 197: auto* sret_struct = : llvm::dyn_cast_or_null<llvm::StructType>(fn->getParamStructRetType(0)); : bool returns_variant = sret_struct != nullptr && sret_stru > Can we simplify the helper with? Done https://gerrit.cloudera.org/#/c/25062/1/be/src/codegen/llvm-codegen.cc File be/src/codegen/llvm-codegen.cc: https://gerrit.cloudera.org/#/c/25062/1/be/src/codegen/llvm-codegen.cc@895 PS1, Line 895: if (fn.binary_type == TFunctionBinaryType::NATIVE > I think every VARIANT builtin takes the IR-module path and the changes in t Right, builtins never take this path. Reverted the LoadFunction() changes. https://gerrit.cloudera.org/#/c/25062/1/be/src/exprs/slot-ref.h File be/src/exprs/slot-ref.h: https://gerrit.cloudera.org/#/c/25062/1/be/src/exprs/slot-ref.h@39 PS1, Line 39: /// Reference to a single slot of a tuple. > line too long (91 > 90) Done https://gerrit.cloudera.org/#/c/25062/1/be/src/exprs/slot-ref.h@40 PS1, Line 40: class SlotRef : public ScalarExpr { > line too long (91 > 90) Done https://gerrit.cloudera.org/#/c/25062/1/be/src/exprs/slot-ref.h@108 PS1, Line 108: int tuple_idx_; // within row > With the SlotRefReadVariantVal being in namespace scope, even with a separa Done: it is a static member of the new SlotRefIr class now, declared in the LLVM-free slot-ref-ir.h, which both slot-ref.cc and slot-ref-ir.cc include. https://gerrit.cloudera.org/#/c/25062/1/be/src/runtime/fragment-state.cc File be/src/runtime/fragment-state.cc: https://gerrit.cloudera.org/#/c/25062/1/be/src/runtime/fragment-state.cc@247 PS1, Line 247: ScalarExprIsWithinStruct > nit: The method name is somewhat misleading as it now also covers the metad Renamed it to ScalarExprIsWithinStructOrVariant(). https://gerrit.cloudera.org/#/c/25062/1/tests/query_test/test_iceberg.py File tests/query_test/test_iceberg.py: https://gerrit.cloudera.org/#/c/25062/1/tests/query_test/test_iceberg.py@2729 PS1, Line 2729: > This is from part 1 but this file doesn't exist. DDone, it points to testdata/data/README now. https://gerrit.cloudera.org/#/c/25062/1/tests/query_test/test_iceberg.py@2756 PS1, Line 2756: test_like_pushdown(self, vector, uni > nit: Not sure if its worth it but a matrix constraint would stop the vector Done, moved the test to a new TestIcebergV3VariantCodegen class with codegen-enabled vectors only. -- To view, visit https://gerrit.cloudera.org/25062 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I08c6a4e9a4b6759276da1340d91ac0606f8b1419 Gerrit-Change-Number: 25062 Gerrit-PatchSet: 3 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Balazs Hevele <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Tue, 03 Nov 2026 17:16:29 +0000 Gerrit-HasComments: Yes
