-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Some logical optimizer rules like type coercion are actually essential for correct query execution, but are currently silently ignored when they failed.
To Reproduce
TBD
Expected behavior
Don't skip failed rules (this probably requires us to remove the non-failing OptimizerRule::optimize method).
Workaround
This behavior is controlled by a config option (that defaults to true meaning to silently skip failed errors).
You can see this in the datafusion cli:
DataFusion CLI v20.0.0
❯ show all;
+-----------------------------------------------------------+------------+
| name | setting |
+-----------------------------------------------------------+------------+
...
| datafusion.optimizer.skip_failed_rules | true |
...
+-----------------------------------------------------------+------------+
35 rows in set. Query took 0.038 seconds.Datafusion can be configured to fail hard if an optimizer rule fails like
❯ -- default behavior
❯ set datafusion.optimizer.skip_failed_rules = false;
0 rows in set. Query took 0.023 seconds.Additional context
See this discussion.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working