Xuebin Su has uploaded this change for review. ( http://gerrit.cloudera.org:8080/23922
Change subject: IMPALA-9059: Add UNPIVOT clause ...................................................................... IMPALA-9059: Add UNPIVOT clause This patch adds support for the UNPIVOT clause by creating a new subclass of `TableRef` called `UnpivotTableRef`. The concepts are explained in `UnpivotTableRef.java`. A new keyword `UNPIVOT` is added. A new type of plan node and a new type of execution node called `UnpivotNode` are added. Two new notification methods are added in `TableRef.java` for `UnpivotTableRef` - to register the SlotDescriptors for the source TableRef and - to mark the SlotDescriptors for the source TableRef as materialized. Testing: - Added E2E tests in `test_unpivot_clause.py`. Change-Id: I10e9d0a1bd70de02c7998afca274b895055d9b6a --- M be/src/exec/CMakeLists.txt M be/src/exec/exec-node.cc A be/src/exec/unpivot-node.cc A be/src/exec/unpivot-node.h M common/thrift/PlanNodes.thrift M fe/src/main/cup/sql-parser.cup M fe/src/main/java/org/apache/impala/analysis/Analyzer.java M fe/src/main/java/org/apache/impala/analysis/Expr.java M fe/src/main/java/org/apache/impala/analysis/TableRef.java A fe/src/main/java/org/apache/impala/analysis/UnpivotTableRef.java M fe/src/main/java/org/apache/impala/planner/DistributedPlanner.java M fe/src/main/java/org/apache/impala/planner/SingleNodePlanner.java A fe/src/main/java/org/apache/impala/planner/UnpivotNode.java M fe/src/main/jflex/sql-scanner.flex A testdata/workloads/functional-query/queries/QueryTest/unpivot-clause.test A tests/query_test/test_unpivot_clause.py 16 files changed, 1,158 insertions(+), 14 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/22/23922/2 -- To view, visit http://gerrit.cloudera.org:8080/23922 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I10e9d0a1bd70de02c7998afca274b895055d9b6a Gerrit-Change-Number: 23922 Gerrit-PatchSet: 2 Gerrit-Owner: Xuebin Su <[email protected]>
