cccs-jc commented on a change in pull request #1979: URL: https://github.com/apache/iceberg/pull/1979#discussion_r550204481
########## File path: core/src/main/java/org/apache/iceberg/hadoop/HadoopCatalog.java ########## @@ -139,6 +139,25 @@ public String name() { return catalogName; } + private boolean isTableDir(Path path) { + Path metadataPath = new Path(path, "metadata"); + // Only the path which contains metadata is the path for table, otherwise it could be + // still a namespace. + try { + return fs.listStatus(metadataPath, TABLE_FILTER).length >= 1; + } catch (IOException e) { + return false; Review comment: I've added support for a flag. However I have not yet retrieved the value from the configuration properties. The exception thrown is this one: https://hadoop.apache.org/docs/r3.2.0/api/org/apache/hadoop/fs/azurebfs/contracts/exceptions/AbfsRestOperationException.html IOException AzureBlobFileSystemException AbfsRestOperationException Unfortunately the exception thrown is an ABFS specific class. ---------------------------------------------------------------- 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. 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