henrib commented on issue #13800:
URL: https://github.com/apache/iceberg/issues/13800#issuecomment-3192398052
It is intended to be used within HMS when exposing a REST Catalog; the
catalog instance is wrapped in a a cache that delegates all calls besides
loadTable. On a cache hit, the Table object staleness is assessed by looking at
the latest known metadata location from the HMS store. This ensures that
loadTable() always returns the latest committed version.
This could be performed directly but the HiveCatalog has all the method -
and a client pool - that makes it easy to implement and logical to expose.
The goal is definitely not to be a shortcut of
client.loadTable().property("metadata_location"); it is intended to be a simple
(and hopefully fast) query avoiding materializing the object that only makes
sense within HiveCatalog.
--
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]