-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 #5623 (comment)
cc @mslapek @alamb
alamb
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request