[email protected] has posted comments on this change. ( http://gerrit.cloudera.org:8080/19099 )
Change subject: IMPALA-9460: ADD PARTITION doesn't accept SET FORMAT ...................................................................... Patch Set 3: (2 comments) Thanks for implementing this feature! I leave two comments here. http://gerrit.cloudera.org:8080/#/c/19099/3/common/thrift/JniCatalog.thrift File common/thrift/JniCatalog.thrift: http://gerrit.cloudera.org:8080/#/c/19099/3/common/thrift/JniCatalog.thrift@120 PS3, Line 120: ADD_PARTITION_SET_FILE_FORMAT = 22 Just a suggestion, can we consider reusing TAlterTableType.ADD_PARTITION? Should only be overloaded AlterTableAddPartitionStmt constructor, without creating another class named AlterTableAddPartitionSetFileFormatStmt. http://gerrit.cloudera.org:8080/#/c/19099/3/fe/src/main/java/org/apache/impala/analysis/AlterTableAddPartitionSetFileFormatStmt.java File fe/src/main/java/org/apache/impala/analysis/AlterTableAddPartitionSetFileFormatStmt.java: http://gerrit.cloudera.org:8080/#/c/19099/3/fe/src/main/java/org/apache/impala/analysis/AlterTableAddPartitionSetFileFormatStmt.java@66 PS3, Line 66: if (tbl instanceof FeKuduTable) { : throw new AnalysisException( : "ALTER TABLE SET FILEFORMAT is not supported " + "on Kudu tables: " : + tbl.getFullName()); : } : : if (tbl instanceof FeIcebergTable) { : throw new AnalysisException( : "ALTER TABLE SET FILEFORMAT is not supported " + "on Iceberg tables: " : + tbl.getFullName()); : } This has been checked at https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/analysis/AlterTableAddPartitionStmt.java#L85 when 'super.analyze(analyzer);', so this code should be omitted? -- To view, visit http://gerrit.cloudera.org:8080/19099 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I2f78cc3c7eba25383128cd8fd881dd41ddea8b69 Gerrit-Change-Number: 19099 Gerrit-PatchSet: 3 Gerrit-Owner: Peter Rozsa <[email protected]> Gerrit-Reviewer: Anonymous Coward <[email protected]> Gerrit-Reviewer: Daniel Becker <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Comment-Date: Sun, 09 Oct 2022 09:51:04 +0000 Gerrit-HasComments: Yes
