Hello Aman Sinha, Aleksandr Efimov, Steve Carlin, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25221
to look at the new patch set (#4).
Change subject: IMPALA-15690: Support HBO for SubplanNode cardinality
......................................................................
IMPALA-15690: Support HBO for SubplanNode cardinality
This adds support for HBO to track cardinality of top-level
SubplanNodes by implementing the HBO key string of SubplanNode,
UnnestNode and SingularRowSrcNode.
Here are what their HBO key string consists of:
- SubplanNode: both child keys + limit
- UnnestNode: collection identity + limit + item conjuncts
- SingularRowSrcNode: const string
Note that we just store/use the cardinality of top-level SubplanNodes.
Nodes inside its right subtree are reset for each iteration (for each
row being unnested) so their cardinality shown in ExecSummary are not
cumulative. A new field, inSubplanSubtree_, is added in PlanNode.java to
identify such nodes.
Testing
- Added FE and e2e tests
Assisted-by: Opus 4.8 (Claude Code)
Change-Id: I92c9e2e70450fc64141a40848508d69afe93d564
---
M fe/src/main/java/org/apache/impala/planner/ExprCanonicalizer.java
M fe/src/main/java/org/apache/impala/planner/PlanNode.java
M fe/src/main/java/org/apache/impala/planner/SingularRowSrcNode.java
M fe/src/main/java/org/apache/impala/planner/SubplanNode.java
M fe/src/main/java/org/apache/impala/planner/UnnestNode.java
M fe/src/test/java/org/apache/impala/planner/HboKeyStringTest.java
M testdata/workloads/functional-query/queries/QueryTest/hbo-collection-scan.test
A testdata/workloads/functional-query/queries/QueryTest/hbo-subplan.test
M tests/query_test/test_hbo.py
9 files changed, 537 insertions(+), 8 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/21/25221/4
--
To view, visit https://gerrit.cloudera.org/25221
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I92c9e2e70450fc64141a40848508d69afe93d564
Gerrit-Change-Number: 25221
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aman Sinha <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>