Repository navigation
feat(e6): SUBQUERY_TREE_MULTIDIALECT flag for the subtree on the planner's multidialect path - #338
Merged
Merged
Conversation
…ner's multidialect path SUBQUERY_TREE runs every query through the subquery tree. The new SUBQUERY_TREE_MULTIDIALECT env flag uses the tree only when the planner sends the MULTIDIALECT feature flag (or with Samsung), as SUBQUERY_TREE did before #337.
suyashkhare1403
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the
SUBQUERY_TREE_MULTIDIALECTenv flag, which uses the subquery tree only on the planner's multidialect path. That is the behaviourSUBQUERY_TREEhad before #337.SUBQUERY_TREE=trueSUBQUERY_TREE_MULTIDIALECT=trueMULTIDIALECT: true(orSAMSUNG_TABLEAU_DASHBOARD=true); other queries take the normal single-dialect pathsplit_pg_outer/split_custom_sql_alias)SUBQUERY_TREEis already deployed with the every-query meaning, so it keeps that meaning.Tests
tests/test_subquery_tree.pynow covers all 8 combinations ofSUBQUERY_TREE,SUBQUERY_TREE_MULTIDIALECTand theMULTIDIALECTflag.make testandmake test-rs: OK.make test-multidialect(Samsung / Condé Nast / OneTrust): OK.sqlglot/_version.py, unrelated to this change.