gene-bordegaray commented on code in PR #22657:
URL: https://github.com/apache/datafusion/pull/22657#discussion_r3456320507
##########
datafusion/datasource/src/file_scan_config/mod.rs:
##########
@@ -700,56 +773,55 @@ impl DataSource for FileScanConfig {
Ok(source.map(|s| Arc::new(s) as _))
}
- /// Returns the output partitioning for this file scan.
+ /// Returns declared or derived output partitioning for this file scan.
///
- /// When `partitioned_by_file_group` is true, this returns
`Partitioning::Hash` on
- /// the Hive partition columns, allowing the optimizer to skip hash
repartitioning
- /// for aggregates and joins on those columns.
+ /// Declared partitioning is projected through the scan projection. If it
+ /// cannot be projected, or its partition count differs from `file_groups`,
+ /// this returns `UnknownPartitioning`.
///
- /// Tradeoffs
Review Comment:
actually if we are deprecating `partitioned_by_file_group` I will keep this
and omit that new addition 👍
--
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]