vadimpiven opened a new pull request, #15811: URL: https://github.com/apache/datafusion/pull/15811
## Which issue does this PR close? - Closes #15810 ## Rationale for this change 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. ## What changes are included in this PR? This PR fixes incorrect if condition. ## Are these changes tested? Introduced unit test covering the change. ## Are there any user-facing changes? No user-facing changes. This PR reverts fixes API brake introduced in 47.0.0 release. -- 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