deniskuzZ commented on code in PR #4216:
URL: https://github.com/apache/hive/pull/4216#discussion_r1188448686


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/DDLUtils.java:
##########
@@ -217,4 +218,11 @@ public static void 
setColumnsAndStorePartitionTransformSpecOfTable(
       partCols.ifPresent(tbl::setPartCols);
     }
   }
+
+  public static void 
validateTableIsIceberg(org.apache.hadoop.hive.ql.metadata.Table table)

Review Comment:
   doesn't it duplicate `HiveTableOperations.validateTableIsIceberg`, could we 
keep just one version of it 
   ````
     static void validateTableIsIceberg(Table table, String fullName) {
       String tableType = table.getParameters().get(TABLE_TYPE_PROP);
       NoSuchIcebergTableException.check(tableType != null && 
tableType.equalsIgnoreCase(ICEBERG_TABLE_TYPE_VALUE),
           "Not an iceberg table: %s (type=%s)", fullName, tableType);
     }
   ````



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to