findepi opened a new issue, #11285: URL: https://github.com/apache/datafusion/issues/11285
### Is your feature request related to a problem or challenge? `Optimizer` returns early when a rewrite produces a certain plan for the second time. Producing same plan again is considered a problem. Returning early is to prevent (avoidable) failure for the user, however - it can masks actual problems (we don't know when optimization finishes early) - it can lead to suboptimal plan being executed, which may be very expensive -- for example containing cross join because predicates weren't pushed into the join yet ### Describe the solution you'd like Do not mask problems. Let the code fail fast, so that bugs are clear. As interim solution, we can have a flag allowing user to recover by restoring current lenient behavior. This can be modelled after existing `datafusion.optimizer.skip_failed_rules` config which serves similar purpose. ### Describe alternatives you've considered _No response_ ### Additional context originates from https://github.com/apache/datafusion/pull/5623#discussion_r1664186593 cc @mslapek @alamb -- 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]
