Wenzhe Zhou has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19725


Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique 
primary key
......................................................................

IMPALA-12058: Impala throw exception for CTAS with non unique primary key

The auto-incrementing column is added to target table by Impala frontend
for CTAS statement when creating Kudu table with non unique primary key
so that the Impala internal table has same layout as the table created
by Kudu engine. This is required for insertion operation of CTAS.
But auto-incrementing column is not in expression. It causes that
frontend throws exception when computing Lineage graph for the column.

This patch fixes the issue by omiting auto-incrementing column for Kudu
table when adding target column labels for computing Lineage graph.

Testing:
 - Added end-to-end test case for creating Kudu tables with Lineage
   enabled.
 - Passed core tests.

Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
---
M fe/src/main/java/org/apache/impala/analysis/ColumnLineageGraph.java
M tests/custom_cluster/test_kudu.py
2 files changed, 24 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/25/19725/1
--
To view, visit http://gerrit.cloudera.org:8080/19725
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 1
Gerrit-Owner: Wenzhe Zhou <[email protected]>

Reply via email to