wangsheng has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/17130 )

Change subject: IMPALA-10222: CREATE TABLE AS SELECT for Iceberg tables
......................................................................


Patch Set 2:

(3 comments)

Sorry for late reply. Thanks for new feature, only few nits.

http://gerrit.cloudera.org:8080/#/c/17130/1/fe/src/main/java/org/apache/impala/analysis/CreateTableAsSelectStmt.java
File fe/src/main/java/org/apache/impala/analysis/CreateTableAsSelectStmt.java:

http://gerrit.cloudera.org:8080/#/c/17130/1/fe/src/main/java/org/apache/impala/analysis/CreateTableAsSelectStmt.java@233
PS1, Line 233: 
Preconditions.checkState(createStmt_.getIcebergPartitionSpecs().size() == 1);
Maybe we can add a comment here for this check.


http://gerrit.cloudera.org:8080/#/c/17130/2/fe/src/main/java/org/apache/impala/catalog/iceberg/IcebergCtasTarget.java
File fe/src/main/java/org/apache/impala/catalog/iceberg/IcebergCtasTarget.java:

http://gerrit.cloudera.org:8080/#/c/17130/2/fe/src/main/java/org/apache/impala/catalog/iceberg/IcebergCtasTarget.java@243
PS2, Line 243: transfromToTHdfsTable
typo: transform


http://gerrit.cloudera.org:8080/#/c/17130/2/fe/src/main/java/org/apache/impala/catalog/iceberg/IcebergCtasTarget.java@262
PS2, Line 262:     THdfsTable hdfsTable = new 
THdfsTable(localFsTable.getHdfsBaseDir(),
             :         getColumnNames(), 
localFsTable.getNullPartitionKeyValue(),
             :         FeFsTable.DEFAULT_NULL_COLUMN_VALUE, idToPartition, 
tPrototypePartition);
             :     return hdfsTable;
Maybe we can return this new THdfsTable directly.



--
To view, visit http://gerrit.cloudera.org:8080/17130
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I81d2084e401b9fa74d5ad161b51fd3e2aa3fcc67
Gerrit-Change-Number: 17130
Gerrit-PatchSet: 2
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Gabor Kaszab <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: wangsheng <[email protected]>
Gerrit-Comment-Date: Wed, 10 Mar 2021 06:39:25 +0000
Gerrit-HasComments: Yes

Reply via email to