Repository navigation
test(e6): Samsung Tableau PARSING_FAILED queries as a regression suite - #342
Open
tkaunlaky-e6 wants to merge 2 commits into
Open
tkaunlaky-e6 wants to merge 2 commits into
tkaunlaky-e6 wants to merge 2 commits into
Conversation
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.
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.
Change
Adds the Samsung Tableau queries that failed with
PARSING_FAILEDto the multidialect side suite (make test-multidialect), so these failures can't come back unnoticed. They are not added tomake test.tests/samsung/failures.csv.gzholds 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):Lexical error ... Encountered: ""`E'...'parameters)Cannot apply 'DATE_ADD' ... <INTERVAL DAY>date + -N * INTERVAL)Lexical error ... Encountered: ""`E'...'flags underSUBQUERY_TREE)Lexical error ... Encountered: "\\"E'...'in Postgres regions)tests/samsung/test_samsung_failures.pyruns them through/convert-querywith 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\nescape and noE'left.Testing
MULTIDIALECT_CORPUS=1make style,make testandmake test-multidialectpass