Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/24674 )
Change subject: IMPALA-15252: Add Python UDF support ...................................................................... Patch Set 9: (2 comments) http://gerrit.cloudera.org:8080/#/c/24674/6/be/src/exprs/scalar-expr-evaluator-ir.cc File be/src/exprs/scalar-expr-evaluator-ir.cc: http://gerrit.cloudera.org:8080/#/c/24674/6/be/src/exprs/scalar-expr-evaluator-ir.cc@38 PS6, Line 38: eval->batched_eval_input_->GetRowIdx(row)); > Thanks! I think this function is used only to read a single value from the Then either change to auto& or inline these calls so the array is not copied. http://gerrit.cloudera.org:8080/#/c/24674/7/be/src/exprs/slot-ref.cc File be/src/exprs/slot-ref.cc: http://gerrit.cloudera.org:8080/#/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) { > Thanks! Not sure how std::for_each() can be used since raw_values() returns I see now the row batch implementation is not STL friendly. You could at least change the code to use RowBatch::Iterator. That will make row iteration more efficient. -- To view, visit http://gerrit.cloudera.org:8080/24674 To unsubscribe, visit http://gerrit.cloudera.org:8080/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: Thu, 29 Oct 2026 16:55:19 +0000 Gerrit-HasComments: Yes
