[CT-1725] [CT-1722] [CT-1721] [Bug] 1.4.0-b1 Bigquery Incremental Query breaks when ending in comment #6485
Closed
2 tasks done
Labels
bug
Something isn't working
regression
Team:Adapters
Issues designated for the adapter area of the code
Milestone
Is this a new bug in dbt-core?
Current Behavior
In 1.4.0-b1 when running:
test_model.sql
:The compiled query becomes:
As you see, the --Test comment row also comments out parts of the merge statement, this happens with or without a trailing newline after the final comment
Expected Behavior
The newlines are persisted and the commend won't influence the wrapping merge statement
Steps To Reproduce
Create a .sql file ending with a comment, configure it to incremental, run twice to trigger an incremental run
Relevant log output
`Syntax error: Expected ")" but got keyword ON at [12:9]`
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: