Gabor Kaszab has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/21675


Change subject: IMPALA-13296: Check column compatibility earlier for table 
migration
......................................................................

IMPALA-13296: Check column compatibility earlier for table migration

When migrating a Hive table to Iceberg there can be columns in the
source table that are not supported by Iceberg. For these tables the
table migration process gives an error. However, this is a multi-step
process and the check for column compatibility is performed after the
source table had been renamed to a temporary name.
This patch brings the column type check to the analysis phase to avoid
renaming the table when there are incompatible columns.

Testing:
  - Re-run the existing checks
  - Adjusted the error message for this error case to reflect that we
    return an AnalysisException.

Change-Id: I381e7359a55ebd84f9a1dcec3b665bdbea62a035
---
M fe/src/main/java/org/apache/impala/analysis/ConvertTableToIcebergStmt.java
M 
testdata/workloads/functional-query/queries/QueryTest/iceberg-migrate-from-external-hdfs-tables.test
2 files changed, 13 insertions(+), 2 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I381e7359a55ebd84f9a1dcec3b665bdbea62a035
Gerrit-Change-Number: 21675
Gerrit-PatchSet: 1
Gerrit-Owner: Gabor Kaszab <[email protected]>

Reply via email to