xudong963 commented on code in PR #15379: URL: https://github.com/apache/datafusion/pull/15379#discussion_r2009743629
########## datafusion/datasource/src/file_groups.rs: ########## @@ -354,6 +361,115 @@ impl FileGroupPartitioner { } } +/// Represents a group of partitioned files that'll be processed by a single thread. +/// Maintains optional statistics across all files in the group. +#[derive(Debug, Clone)] +pub struct FileGroup { + /// The files in this group + pub files: Vec<PartitionedFile>, + /// Optional statistics for all files in the group + pub statistics: Option<Statistics>, Review Comment: We can compute the `statistics` in the method of `ListingTable` https://github.com/apache/datafusion/blob/5210a2bac32e43dc7bf6e7e6000cdeaf2833c06e/datafusion/core/src/datasource/listing/table.rs#L1086-L1091 -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org