Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2685: prevent CSE optimizer from causing short-circuiting issues, and add disable_optimizers setting #2686

Merged
merged 4 commits into from
Nov 30, 2021

Conversation

Mytherin
Copy link
Collaborator

Fixes #2685

This PR exposes the disable_optimizers settings in SQL which allows optimizers to be disabled on a per-optimizer basis. This is useful for debugging to quickly figure out which optimizer causes issues.

Syntax:

SET disabled_optimizers TO 'expression_rewriter,filter_pushdown,join_order'

Available optimizers:

expression_rewriter
filter_pullup
filter_pushdown
regex_range
in_clause
join_order
deliminator
unused_columns
statistics_propagation
common_subexpressions
common_aggregate
column_lifetime
top_n
reorder_filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CASE WHEN logical expression not short circuiting properly
1 participant