JingsongLi commented on code in PR #5958: URL: https://github.com/apache/paimon/pull/5958#discussion_r2230062134
########## paimon-vfs/paimon-vfs-common/src/main/java/org/apache/paimon/vfs/VFSOperations.java: ########## @@ -238,4 +288,35 @@ private GetTableResponse loadTableMetadata(Identifier identifier) throws IOExcep return response; } + + private VFSTableInfo loadTableInfo(Identifier identifier) throws IOException { + // Get table from REST server + GetTableResponse table; + table = loadTableMetadata(identifier); + + if (table.isExternal()) { + throw new IOException("Do not support visiting external table " + identifier); + } + Path tablePath = new Path(table.getPath()); + FileIO fileIO = new RESTTokenFileIO(context, api, identifier, tablePath); Review Comment: We should cache `FileIO` too. -- 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...@paimon.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org