We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 382e232 commit 4e5f42bCopy full SHA for 4e5f42b
datafusion/datasource/src/file_scan_config.rs
@@ -266,7 +266,10 @@ impl DataSource for FileScanConfig {
266
) -> Result<Option<Arc<dyn ExecutionPlan>>> {
267
// If there is any non-column or alias-carrier expression, Projection should not be removed.
268
// This process can be moved into CsvExec, but it would be an overlap of their responsibility.
269
- Ok(all_alias_free_columns(projection.expr()).then(|| {
+
270
+ Ok((all_alias_free_columns(projection.expr())
271
+ && self.table_partition_cols.is_empty())
272
+ .then(|| {
273
let file_scan = self.clone();
274
let source = Arc::clone(&file_scan.file_source);
275
let new_projections = new_projections_for_columns(
0 commit comments