Abhishek Rawat has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/13193


Change subject: IMPALA-7293: Show tuple layout in explain plan.
......................................................................

IMPALA-7293: Show tuple layout in explain plan.

This change prints materialized tuple's layout in the explain plan, at
explain_level >= 2.

New logic was added in the Planner::getExplainString(..) to print the
tuple layouts. The logic walks through the TupleDescriptors (and
SlotDescriptors) related to a given PlannerContext (for a given query),
stored in the associated global state (Analyzer.globalState_.descTbl
object) and prints materialized tuples and slots.

Testing:
- Tons of existing test units in PlannerTest were updated to include
  the tuple layout. The existing test cases provide good coverage.
- New testunit testTupleLayout was added to PlannerTest.java. The new
  test unit adds scenarios involving scalar types, complex types, joins,
  order-by, aggregation, union all and subqueries.

Change-Id: Iac38290217a219e75400e4206835992a7ea31dba
---
M fe/src/main/java/org/apache/impala/analysis/DescriptorTable.java
M fe/src/main/java/org/apache/impala/analysis/SlotDescriptor.java
M fe/src/main/java/org/apache/impala/analysis/TupleDescriptor.java
M fe/src/main/java/org/apache/impala/catalog/Type.java
M fe/src/main/java/org/apache/impala/planner/Planner.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
M 
testdata/workloads/functional-planner/queries/PlannerTest/constant-folding.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/fk-pk-join-detection.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/kudu-selectivity.test
M testdata/workloads/functional-planner/queries/PlannerTest/max-row-size.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/min-max-runtime-filters.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/mt-dop-validation.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/parquet-filtering-disabled.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/parquet-filtering.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/partition-pruning.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/resource-requirements.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/sort-expr-materialization.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/spillable-buffer-sizing.test
M testdata/workloads/functional-planner/queries/PlannerTest/tablesample.test
A testdata/workloads/functional-planner/queries/PlannerTest/tuple-layout.test
M testdata/workloads/functional-planner/queries/PlannerTest/union.test
21 files changed, 4,878 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/13193/3
--
To view, visit http://gerrit.cloudera.org:8080/13193
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac38290217a219e75400e4206835992a7ea31dba
Gerrit-Change-Number: 13193
Gerrit-PatchSet: 3
Gerrit-Owner: Abhishek Rawat <ara...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Tim Armstrong <tarmstr...@cloudera.com>

Reply via email to