blaginin commented on code in PR #14956:
URL: https://github.com/apache/datafusion/pull/14956#discussion_r1976506356


##########
datafusion/datasource/src/file_scan_config.rs:
##########
@@ -266,7 +266,10 @@ impl DataSource for FileScanConfig {
     ) -> Result<Option<Arc<dyn ExecutionPlan>>> {
         // If there is any non-column or alias-carrier expression, Projection 
should not be removed.
         // This process can be moved into CsvExec, but it would be an overlap 
of their responsibility.
-        Ok(all_alias_free_columns(projection.expr()).then(|| {
+
+        Ok((all_alias_free_columns(projection.expr())
+            && self.table_partition_cols.is_empty())

Review Comment:
   great point 🤗



-- 
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

Reply via email to