vadimpiven opened a new issue, #15810: URL: https://github.com/apache/datafusion/issues/15810
### Describe the bug PR https://github.com/apache/datafusion/pull/15201 introduced a bug here https://github.com/apache/datafusion/blob/9730404028a91a7fe875ea3f88bafdbcb305ae6c/datafusion/expr/src/logical_plan/builder.rs#L501 - there is a check for filters, but there is no check for projection. As a result - projection is dropped. ### To Reproduce - Create `TableView` over `EmptyRelation` with 2 columns - Call `LogicalPlanBuilder::scan` with projection `[0]` - Call `println!("{plan}")` and check that there is no projection ### Expected behavior Projection must be preserved ### Additional context _No response_ -- 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]
