[Bug] For BigQuery, a multiline string needs to be escaped with 3 quotes instead of 1 like in default__string_literal()
#1088
Labels
bug
Something isn't working
Is this a new bug in dbt-bigquery?
Current Behavior
dbt.string_literal(val)
is defined indbt-adapters
but not overwritten indbt-bigquery
.Calling
dbt.string_literal(val)
fails in BigQuery whenval
contains newline characters. This is because strings with newlines characters need to be "triple-escaped" in BigQuery (docs)Expected Behavior
Calling
dbt.string_literal(val)
in BigQuery should work with aval
containing newlinesSteps To Reproduce
Create a model with
Relevant log output
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: