Kurt Deschler has posted comments on this change. ( https://gerrit.cloudera.org/25068 )
Change subject: PROTOTYPE IMPALA-15520: Cap join NDVs by rows surviving FK/PK joins ...................................................................... Patch Set 2: (1 comment) https://gerrit.cloudera.org/#/c/25068/2/fe/src/main/java/org/apache/impala/planner/JoinNode.java File fe/src/main/java/org/apache/impala/planner/JoinNode.java: https://gerrit.cloudera.org/#/c/25068/2/fe/src/main/java/org/apache/impala/planner/JoinNode.java@554 PS2, Line 554: double rhsNdvCap = getMaxDistinctRows(getChild(1), slots.rhsTid()); It may be good to add a join expansion factor multiplier to bound the estimates similar to AGG_MEM_CORRELATION_FACTOR. In general is better to not be too conservative on the estimates when the runtime can handle overflow (i.e. spilling) -- To view, visit https://gerrit.cloudera.org/25068 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Icb7fbd20a907d88edc8b549037a3cba569cb5978 Gerrit-Change-Number: 25068 Gerrit-PatchSet: 2 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Kurt Deschler <[email protected]> Gerrit-Comment-Date: Wed, 11 Nov 2026 13:57:06 +0000 Gerrit-HasComments: Yes
