Repository navigation
fix(e6): Tableau E'...' / newline flags also work under SUBQUERY_TREE(_MULTIDIALECT) - #339
Merged
Merged
Conversation
…(_MULTIDIALECT) STRIP_E_STRING_PREFIX and STRIP_STRING_NEWLINES were only active together with SAMSUNG_TABLEAU_DASHBOARD. A deployment running the subquery tree without that flag failed Samsung Tableau queries carrying E'...\n' parameters. Each sub-flag is now active with SAMSUNG_TABLEAU_DASHBOARD, SUBQUERY_TREE or SUBQUERY_TREE_MULTIDIALECT; on its own it still does nothing.
suyashkhare1403
approved these changes
Nov 19, 2026
suyashkhare1403
approved these changes
Nov 19, 2026
This was referenced Nov 20, 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.
Why
samsung-dashboardfailed 708 runs (9 distinct Tableau queries) withLexical error ... Encountered: "". Each query has a Tableau parameter bound asE'VZ_...,\nVZ_...'inside the Databricks "Custom SQL Query". TheE'...'handling (STRIP_E_STRING_PREFIX) and newline stripping (STRIP_STRING_NEWLINES) from #332 only took effect together withSAMSUNG_TABLEAU_DASHBOARD`. With the subquery tree, that flag isn't needed for routing, so without it the transpiler returned a 500 and the engine parsed the original query.What
Each sub-flag now takes effect together with any one of
SAMSUNG_TABLEAU_DASHBOARD,SUBQUERY_TREEorSUBQUERY_TREE_MULTIDIALECT. It is still gated: a sub-flag alone, or a mode flag alone, changes nothing.E'...'read as a stringSTRIP_E_STRING_PREFIXSTRIP_E_STRING_PREFIX+STRIP_STRING_NEWLINES"Mode flag" means
SAMSUNG_TABLEAU_DASHBOARD,SUBQUERY_TREEorSUBQUERY_TREE_MULTIDIALECT.Deployment for samsung-dashboard:
SUBQUERY_TREE=true STRIP_E_STRING_PREFIX=true STRIP_STRING_NEWLINES=true. These are read at startup, so restart the pods after changing them.Verified
SUBQUERY_TREE+ both sub-flags (no Samsung flag): 9/9 OK, and the output is identical to the old Samsung method. WithSUBQUERY_TREEalone they still fail (0/9), as before.test_samsung_tableau_escape_stringsandtest_strip_string_newlinesnow check each of the three mode flags, and that each flag alone does nothing.test_tableau_escape_strings_without_samsung_flagruns end to end through/convert-querywith the subtree.make testandmake test-rs: OK.make test-multidialect(Samsung / Condé Nast / OneTrust): OK.sqlglot/_version.py, unrelated to this change.