You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org> on 2023/04/12 03:33:20 UTC
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
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 <wz...@cloudera.com>
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19725 )
Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique primary key
......................................................................
Patch Set 2: Verified+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: comment
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Apr 2023 23:20:27 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/19725 )
Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique primary key
......................................................................
Patch Set 2: Code-Review+2
LGTM. Carry votes from Kurt and Abhishek.
--
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: comment
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Apr 2023 17:43:49 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19725 )
Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique primary key
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/12779/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
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: comment
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 1
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Apr 2023 04:00:35 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Kurt Deschler (Code Review)" <ge...@cloudera.org>.
Kurt Deschler has posted comments on this change. ( http://gerrit.cloudera.org:8080/19725 )
Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique primary key
......................................................................
Patch Set 2: Code-Review+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: comment
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Apr 2023 17:25:27 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19725 )
Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique primary key
......................................................................
Patch Set 2:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/12782/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
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: comment
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Apr 2023 08:28:52 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Abhishek Chennaka (Code Review)" <ge...@cloudera.org>.
Abhishek Chennaka has posted comments on this change. ( http://gerrit.cloudera.org:8080/19725 )
Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique primary key
......................................................................
Patch Set 2: Code-Review+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: comment
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Apr 2023 17:31:32 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has uploaded a new patch set (#2). ( 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 Planner
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/planner/Planner.java
M fe/src/main/java/org/apache/impala/planner/PlannerContext.java
M tests/custom_cluster/test_kudu.py
3 files changed, 31 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/25/19725/2
--
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: newpatchset
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19725 )
Change subject: IMPALA-12058: Impala throw exception for CTAS with non unique primary key
......................................................................
Patch Set 2:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9221/ DRY_RUN=false
--
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: comment
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Apr 2023 18:03:59 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-12058: Impala throw exception for CTAS with non unique primary key
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( 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 Planner
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
Reviewed-on: http://gerrit.cloudera.org:8080/19725
Reviewed-by: Kurt Deschler <kd...@cloudera.com>
Reviewed-by: Abhishek Chennaka <ac...@cloudera.com>
Reviewed-by: Riza Suminto <ri...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M fe/src/main/java/org/apache/impala/planner/Planner.java
M fe/src/main/java/org/apache/impala/planner/PlannerContext.java
M tests/custom_cluster/test_kudu.py
3 files changed, 31 insertions(+), 1 deletion(-)
Approvals:
Kurt Deschler: Looks good to me, but someone else must approve
Abhishek Chennaka: Looks good to me, but someone else must approve
Riza Suminto: Looks good to me, approved
Impala Public Jenkins: Verified
--
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: merged
Gerrit-Change-Id: Ic87b7fac8eb857e9dc5c59bdb448270b23f6dd5a
Gerrit-Change-Number: 19725
Gerrit-PatchSet: 3
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Kurt Deschler <kd...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>