Skip to content

Commit

Permalink
Create BQ version of string_literal with correct quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
b-per committed Feb 5, 2024
1 parent 77a9f14 commit 46f26fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20240205-102954.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix dbt.string_literal for BQ when there are newlines
time: 2024-02-05T10:29:54.145326+01:00
custom:
Author: b-per
Issue: "1088"
3 changes: 3 additions & 0 deletions dbt/include/bigquery/macros/utils/string_literal.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro bigquery__string_literal(value) %}
'''{{ value }}'''
{%- endmacro -%}

0 comments on commit 46f26fe

Please sign in to comment.