danielcweeks commented on code in PR #11906: URL: https://github.com/apache/iceberg/pull/11906#discussion_r1920907162
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/actions/DeleteOrphanFilesSparkAction.java: ########## @@ -292,19 +294,49 @@ private Dataset<FileURI> validFileIdentDS() { private Dataset<FileURI> actualFileIdentDS() { StringToFileURI toFileURI = new StringToFileURI(equalSchemes, equalAuthorities); + Dataset<String> dataList; if (compareToFileList == null) { - return toFileURI.apply(listedFileDS()); + dataList = + table.io() instanceof SupportsPrefixOperations ? listWithPrefix() : listWithoutPrefix(); } else { - return toFileURI.apply(filteredCompareToFileList()); + dataList = filteredCompareToFileList(); } + + return toFileURI.apply(dataList); + } + + @VisibleForTesting + Dataset<String> listWithPrefix() { Review Comment: For example, with the new object store layout, you would be able to use a binary representation for the first three characters (on task for each prefix 000 to 111) and then have separate tasks for anything above and below the binary characters and then distribute that processing. -- 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