Xuebin Su has posted comments on this change. ( https://gerrit.cloudera.org/24674 )
Change subject: IMPALA-15252: Add Python UDF support ...................................................................... Patch Set 9: (2 comments) > Patch Set 9: > > (2 comments) Thanks for your reviews! https://gerrit.cloudera.org/#/c/24674/6/be/src/exprs/scalar-expr-evaluator-ir.cc File be/src/exprs/scalar-expr-evaluator-ir.cc: https://gerrit.cloudera.org/#/c/24674/6/be/src/exprs/scalar-expr-evaluator-ir.cc@38 PS6, Line 38: eval->batched_eval_input_->GetRowIdx(row)); > Then either change to auto& or inline these calls so the array is not copie The local variable has been removed in the latest Patch Set (Patch Set 9). https://gerrit.cloudera.org/#/c/24674/7/be/src/exprs/slot-ref.cc File be/src/exprs/slot-ref.cc: https://gerrit.cloudera.org/#/c/24674/7/be/src/exprs/slot-ref.cc@484 PS7, Line 484: for (int row_idx = 0; row_idx < eval->batched_eval_output_length(); ++row_idx) { > I see now the row batch implementation is not STL friendly. You could at le Thanks! If using an Iterator, I think we will need to call Iterator::RowNum() to access each element in `raw_value_array`. I am not sure which will be more efficient. -- To view, visit https://gerrit.cloudera.org/24674 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I04207ac53a53381b0dbdb9a7768665fb95aad519 Gerrit-Change-Number: 24674 Gerrit-PatchSet: 9 Gerrit-Owner: Xuebin Su <[email protected]> Gerrit-Reviewer: Balazs Hevele <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Kurt Deschler <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Xuebin Su <[email protected]> Gerrit-Comment-Date: Fri, 13 Nov 2026 07:55:06 +0000 Gerrit-HasComments: Yes
