Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25221
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 Change-Id: I92c9e2e70450fc64141a40848508d69afe93d564 --- 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 8 files changed, 277 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/21/25221/1 -- To view, visit http://gerrit.cloudera.org:8080/25221 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I92c9e2e70450fc64141a40848508d69afe93d564 Gerrit-Change-Number: 25221 Gerrit-PatchSet: 1 Gerrit-Owner: Quanlong Huang <[email protected]>
