NoahKusaba commented on issue #108: URL: https://github.com/apache/datafusion-iceberg/issues/108#issuecomment-7380360950
I'd suggest splitting files in DataSource::repartitioned rather than in eager planning. DataFusion's physical optimizer calls this method to spread a scan across more partitions, and its Parquet scan implements it by cutting large files into byte ranges. IcebergDataSource keeps the default, which never splits. Implementing it means: - the existing repartition_file_scans and repartition_file_min_size settings apply, so no new setting is needed; - the optimizer passes the required ordering, so sorted scans (#55) can decline to split; - splitting at split_offsets() and balancing by bytes happen in one step; - Ballista gets it too, since its scheduler runs the same optimizer. +1 to waiting for apache/iceberg-rust#3704: most files have only a few row groups, so cuts without offsets mostly produce empty pieces. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
