nk1506 commented on code in PR #9852: URL: https://github.com/apache/iceberg/pull/9852#discussion_r1519153254
########## hive-metastore/src/main/java/org/apache/iceberg/hive/HiveOperationsBase.java: ########## @@ -62,6 +81,57 @@ interface HiveOperationsBase { String table(); + String catalogName(); + + String entityType(); + + BaseMetastoreOperations.CommitStatus validateNewLocationAndReturnCommitStatus( + BaseMetadata metadata, String newMetadataLocation); + + default Table loadHmsTable() throws TException, InterruptedException { + try { + return metaClients().run(client -> client.getTable(database(), table())); + } catch (NoSuchObjectException nte) { + LOG.trace("{} not found {}", entityType(), fullName(), nte); + return null; + } + } + + void setHmsParameters( + BaseMetadata metadata, Review Comment: @nastra , in Case of `table` it requires to set all the table related metadata. ``` setSnapshotStats(metadata, parameters); setPartitionSpec(metadata, parameters); setSortOrder(metadata, parameters); ``` One of the primary reason to introduce `BaseMetadata` . Please let me know what do you propose to `setHmsParameters` for `Table`. Please take a look [here](https://github.com/apache/iceberg/pull/9852/files#diff-e502621d52f86cf0ec3187dda30ac61f6b76efb7b6276bc8d233ccb2c836fb98R187) for reference. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org