Skip to content

Fix: keep long_compiled_test's quote in a comment so BigQuery can run it - #586

Merged
mtcarlone merged 1 commit into
mainfrom
fix/bigquery-long-compiled-test
Nov 6, 2026
Merged

mtcarlone merged 1 commit into
mainfrom
fix/bigquery-long-compiled-test

Conversation

@mtcarlone

Copy link
Copy Markdown
Contributor

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

  • Minor bug fix
  • Documentation improvements
  • Quality of Life improvements
  • New features (non-breaking change)
  • New features (breaking change)
  • Other (non-breaking change)
  • Other (breaking change)
  • Release preparation

What does this solve?

Outstanding questions

What databases have you tested with?

  • Snowflake
  • Google BigQuery
  • Databricks
  • Spark
  • N/A

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.
@mtcarlone
mtcarlone merged commit 7a6097e into main Nov 6, 2026
6 checks passed
@mtcarlone
mtcarlone deleted the fix/bigquery-long-compiled-test branch November 6, 2026 22:52
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