smaheshwar-pltr commented on code in PR #13225:
URL: https://github.com/apache/iceberg/pull/13225#discussion_r4733535302
##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -716,12 +733,19 @@ private RESTTable restTableForScanPlanning(
return null;
}
- private void trackFileIO(RESTTableOperations ops) {
- if (io != ops.io()) {
+ private void trackFileIO(RESTTableOperations ops, FileIO tableIO) {
+ // The catalog closes its own FileIO. Compare tableIO because ops.io()
wraps it for encrypted
+ // tables.
Review Comment:
Good callout, this is indeed the alternative and I've gone back and forth on
this vs the catalog asking the ops for what it's just configured it with. I'm
now leaning back towards your suggestion, I've made it in
[985cf9e](https://github.com/apache/iceberg/pull/13225/commits/985cf9e93c85ec1f29648913bd380ddf0b521a16)
with it package-private. LMKWYT, thanks!
--
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]