Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/22371 )
Change subject: IMPALA-13660: Support caching broadcast hash joins ...................................................................... Patch Set 7: (5 comments) http://gerrit.cloudera.org:8080/#/c/22371/6/be/src/exec/nested-loop-join-node.cc File be/src/exec/nested-loop-join-node.cc: http://gerrit.cloudera.org:8080/#/c/22371/6/be/src/exec/nested-loop-join-node.cc@180 PS6, Line 180: builder_ = dynamic_cast<NljBuilder*>(separate_builder); > nit: might be worth a comment and/or DCHECK if we would only ever expect an Good point, added a DCHECK that it is not nullptr. (And same thing for partitioned hash join builder) http://gerrit.cloudera.org:8080/#/c/22371/6/be/src/exec/nested-loop-join-node.cc@187 PS6, Line 187: DCHECK(separate_build || builder_->is_closed() || !children_[1]->is_closed()); > I think this covers all the possible boolean alternatives to the else-if cl You're right, that is cleaner. Switched to that arrangement. http://gerrit.cloudera.org:8080/#/c/22371/6/be/src/exec/partitioned-hash-join-node.cc File be/src/exec/partitioned-hash-join-node.cc: http://gerrit.cloudera.org:8080/#/c/22371/6/be/src/exec/partitioned-hash-join-node.cc@312 PS6, Line 312: builder_ = dynamic_cast<PhjBuilder*>(separate_builder); > Same comment as https://gerrit.cloudera.org/c/22371/6/be/src/exec/nested-lo Done http://gerrit.cloudera.org:8080/#/c/22371/6/be/src/exec/partitioned-hash-join-node.cc@325 PS6, Line 325: buffer_pool_client()->GetReservation() - resource_profile_.min_reservation); > Same comment as https://gerrit.cloudera.org/c/22371/6/be/src/exec/nested-lo Done http://gerrit.cloudera.org:8080/#/c/22371/6/fe/src/main/java/org/apache/impala/planner/PlanNode.java File fe/src/main/java/org/apache/impala/planner/PlanNode.java: http://gerrit.cloudera.org:8080/#/c/22371/6/fe/src/main/java/org/apache/impala/planner/PlanNode.java@1410 PS6, Line 1410: * because it is not a beneficial caching location). This has no impact on eligibility, > I think it'd be useful to specifically call out that this is useful because Rewrote this to try to clarify this -- To view, visit http://gerrit.cloudera.org:8080/22371 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic61462702b43175c593b34e8c3a14b9cfe85c29e Gerrit-Change-Number: 22371 Gerrit-PatchSet: 7 Gerrit-Owner: Michael Smith <michael.sm...@cloudera.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Joe McDonnell <joemcdonn...@cloudera.com> Gerrit-Reviewer: Kurt Deschler <kdesc...@cloudera.com> Gerrit-Reviewer: Michael Smith <michael.sm...@cloudera.com> Gerrit-Reviewer: Yida Wu <wydbaggio...@gmail.com> Gerrit-Comment-Date: Tue, 08 Apr 2025 00:42:45 +0000 Gerrit-HasComments: Yes