jshmchenxi commented on code in PR #12212: URL: https://github.com/apache/iceberg/pull/12212#discussion_r1960871186
########## data/src/main/java/org/apache/iceberg/data/TableMigrationUtil.java: ########## @@ -164,7 +164,10 @@ public static List<DataFile> listPartition( Path partitionDir = new Path(partitionUri); FileSystem fs = partitionDir.getFileSystem(conf); List<FileStatus> fileStatus = - Arrays.stream(fs.listStatus(partitionDir, HIDDEN_PATH_FILTER)) + Arrays.stream( + fs.exists(partitionDir) + ? fs.listStatus(partitionDir, HIDDEN_PATH_FILTER) + : new FileStatus[] {}) Review Comment: Sounds good. I've added log here. -- 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