flyrain commented on issue #5163: URL: https://github.com/apache/iceberg/issues/5163#issuecomment-1179835508
@yabola, we can still reuse the method `registerTable`. For your concern about `doCommit` changing the metadata, it won't happen in the method `registerTable` since we explicitly set the base to null, so that `doCommit` won't write a new metadata, check the details here. https://github.com/apache/iceberg/blob/08c8764b40fac06836d32d4d886b9f43962c8ee6/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java#L218 -- 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]
