Skip to content

test(e6): Samsung Tableau PARSING_FAILED queries as a regression suite - #342

Open
tkaunlaky-e6 wants to merge 2 commits into
mainfrom
test/samsung-tableau-failures
Open

tkaunlaky-e6 wants to merge 2 commits into
mainfrom
test/samsung-tableau-failures

Conversation

@tkaunlaky-e6

Copy link
Copy Markdown

Change

Adds the Samsung Tableau queries that failed with PARSING_FAILED to the multidialect side suite (make test-multidialect), so these failures can't come back unnoticed. They are not added to make test.

tests/samsung/failures.csv.gz holds 30 distinct queries (858 failures) from the Samsung query-history exports, with the SQL, the engine error and the expected e6 output (no user column):

Export Distinct queries (failures) Error Fixed by
23 Oct 9 (87) Lexical error ... Encountered: ""` #332 (Tableau E'...' parameters)
3 Nov 3 (36) Cannot apply 'DATE_ADD' ... <INTERVAL DAY> #335 (date + -N * INTERVAL)
19 Nov 9 (708) Lexical error ... Encountered: ""` #339 (E'...' flags under SUBQUERY_TREE)
20 Nov 9 (27) Lexical error ... Encountered: "\\" #340 (E'...' in Postgres regions)

tests/samsung/test_samsung_failures.py runs them through /convert-query with the Samsung cluster flags (SUBQUERY_TREE, STRIP_E_STRING_PREFIX, STRIP_STRING_NEWLINES, native executor). The flags are read at import, so the test runs in a subprocess. Each query must match the expected e6 exactly, with no \n escape and no E' left.

Testing

Add the 30 distinct queries (858 failures) of the 23 Oct, 3 Nov, 19 Nov and 20 Nov Samsung
query-history exports to the multidialect side suite (make test-multidialect). They run in a
subprocess with the Samsung cluster flags (SUBQUERY_TREE, STRIP_E_STRING_PREFIX,
STRIP_STRING_NEWLINES, native executor) and must convert to the expected e6 with no \n escape
or E'...' left.
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.

1 participant