Repository navigation
Fix: keep long_compiled_test's quote in a comment so BigQuery can run it - #586
Merged
Merged
Conversation
The test compared 'it''s' = 'it''s'. Doubling a quote is standard SQL, but BigQuery reads 'it''s' as two adjacent string literals and fails with "concatenated string literals must be separated by whitespace", which made Tier 2's BigQuery job fail. The quote now sits in the SQL comment, so the compiled SQL still carries a quote, a backslash and newlines for the upload escaping check, and the query is plain SQL on every adapter. In Tier 2 run 42305304144 the BigQuery upload hook itself succeeded and assert_previous_build_uploaded_test_execution_details passed; only this test's own query failed.
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.
The test compared 'it''s' = 'it''s'. Doubling a quote is standard SQL, but BigQuery reads 'it''s' as two adjacent string literals and fails with "concatenated string literals must be separated by whitespace", which made Tier 2's BigQuery job fail. The quote now sits in the SQL comment, so the compiled SQL still carries a quote, a backslash and newlines for the upload escaping check, and the query is plain SQL on every adapter.
In Tier 2 run 42305304144 the BigQuery upload hook itself succeeded and assert_previous_build_uploaded_test_execution_details passed; only this test's own query failed.
Overview
Update type - breaking / non-breaking
What does this solve?
Outstanding questions
What databases have you tested with?