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


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/DDLUtils.java:
##########
@@ -227,4 +229,17 @@ public static void 
validateTableIsIceberg(org.apache.hadoop.hive.ql.metadata.Tab
           table.getFullTableName(), tableType));
     }
   }
+
+  public static boolean isIcebergTable(Table table) {
+    return Optional.ofNullable(table.getStorageHandler())

Review Comment:
   got it. in that case shouldn't it be something like this:
   ````
   table.isNonNative() && 
HiveMetaHook.ICEBERG.equals(table.getStorageHandler().getTableType())
   ````



-- 
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