shivbhatia10 opened a new issue, #21063: URL: https://github.com/apache/datafusion/issues/21063
### Describe the bug In the `push_down_filter` optimisation rule, we currently don't check if the child of a filter node has `fetch` limits. This is semantically equivalent to pushing a filter past a limit node, which is wrong. ### To Reproduce I added unit tests in the fix PR which reproduce this behaviour. ### Expected behavior This should never happen, pushing a filter past for example a sort with a fetch limit causes incorrect behaviour. ### Additional context Fix here: https://github.com/apache/datafusion/pull/21057 -- 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]
