rdblue commented on a change in pull request #1495:
URL: https://github.com/apache/iceberg/pull/1495#discussion_r497051298
##########
File path:
hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java
##########
@@ -313,6 +327,11 @@ protected void doUnlock(long lockId) throws TException,
InterruptedException {
}
static void validateTableIsIceberg(Table table, String fullName) {
+ if
("TRUE".equalsIgnoreCase(table.getParameters().get(TABLE_CREATION_FROM_HIVE))) {
+ // No check is needed. The table has been created from Hive
(HiveIcebergMetaHook), and we are about to initialize
+ // the Iceberg metadata
+ return;
+ }
Review comment:
Is this needed? `TABLE_TYPE_PROP` is set in the pre-commit hook. In
fact, can we just use that instead of `TABLE_CREATION_FROM_HIVE`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]