Fokko commented on code in PR #6714: URL: https://github.com/apache/iceberg/pull/6714#discussion_r1110433069
########## python/pyiceberg/io/pyarrow.py: ########## @@ -555,8 +555,10 @@ def project_table( if len(tables) > 1: return pa.concat_tables(tables) - else: + elif len(tables) == 1: return tables[0] + else: + return pa.Table.from_batches([], schema=schema_to_pyarrow(projected_schema)) Review Comment: I can split this into a separate PR, but I think it makes sense to ship it with this PR since if all the datafiles are skipped, it will return an empty iterator that can't be concatenated. -- 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