adriangb commented on code in PR #16139: URL: https://github.com/apache/datafusion/pull/16139#discussion_r2112613924
########## datafusion/common/src/pruning.rs: ########## @@ -122,3 +126,1002 @@ pub trait PruningStatistics { values: &HashSet<ScalarValue>, ) -> Option<BooleanArray>; } + +/// Prune files based on their partition values. +/// This is used both at planning time and execution time to prune +/// files based on their partition values. +/// This feeds into [`CompositePruningStatistics`] to allow pruning +/// with filters that depend both on partition columns and data columns +/// (e.g. `WHERE partition_col = data_col`). +#[derive(Clone)] +pub struct PartitionPruningStatistics { + /// Values for each column for each container. Review Comment: I went with https://github.com/apache/datafusion/commit/0def286886df92f16e57e6cf091df32b9113cdf4. I'll do another round to fix clippy and remove a collect() -- 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