IMPALA-11287 (part 1): Disable CREATE TABLE LIKE statements for Iceberg tables

We currently don't implement correct behavior for CREATE TABLE LIKE
statements for Iceberg tables. Neither on the source, nor on the
target table side.

This patch forbids such statements until they are correctly implemented.

Testing
 * added e2e test

Change-Id: I9cee6fc82547dabf63937cc541163c1ee59a4013
Reviewed-on: http://gerrit.cloudera.org:8080/18517
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Zoltan Borok-Nagy
2022-05-11 17:51:10 +02:00
committed by Impala Public Jenkins
parent ca5ea4aeab
commit 7c40b95a04
2 changed files with 21 additions and 0 deletions

View File

@@ -602,3 +602,13 @@ select * from functional_parquet.iceberg_v2_delete_positional;
---- CATCH
row_regex:.*CAUSED BY: TableLoadingException: Unsupported Iceberg V2 feature, table .* contains delete files..*
====
---- QUERY
CREATE TABLE ice_clone LIKE functional_parquet.iceberg_non_partitioned;
---- CATCH
Cloning an Iceberg table using CREATE TABLE LIKE is not supported.
====
---- QUERY
CREATE TABLE clone_ice LIKE functional_parquet.alltypestiny STORED AS ICEBERG;
---- CATCH
CREATE TABLE LIKE is not supported for Iceberg tables.
====