flyrain commented on code in PR #7914: URL: https://github.com/apache/iceberg/pull/7914#discussion_r1736836729
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/actions/DeleteOrphanFilesSparkAction.java: ########## @@ -299,7 +300,21 @@ private Dataset<FileURI> actualFileIdentDS() { } } - private Dataset<String> listedFileDS() { + private Dataset<String> listWithPrefix() { + List<String> matchingFiles = Lists.newArrayList(); + Iterator<org.apache.iceberg.io.FileInfo> iterator = + ((SupportsPrefixOperations) table.io()).listPrefix(location).iterator(); Review Comment: Should we fall back in case `table.io()` doesn't support interface `SupportsPrefixOperations`? -- 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...@iceberg.apache.org 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