Skip to content

Commit 15321e8

Browse files
authored
Merge pull request #540 from dbt-labs/fix-529
2 parents 99a684e + dd6a20a commit 15321e8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

integration_tests/models/marts/intermediate/_dim_model_7.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ models:
55
enforced: true
66
columns:
77
- name: id
8+
description: A multiline description containing example values that might\nbe held in this column. These examples include one with a format like something\Something\Another\Thing
89
data_type: "{{ 'UInt8' if target.type in ['clickhouse'] else 'int' }}"
910
constraints:
1011
- type: not_null

integration_tests/models/staging/source_1/source.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sources:
1212
description: this is table 1.
1313
columns:
1414
- name: my_column
15-
description: description for my source column
15+
description: description for my source column with weird chars like \Something\Another\Thing
1616
- name: table_2
1717
- name: table_4
1818
- name: table_5

macros/unpack/get_column_values.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
[
2323
wrap_string_with_quotes(node.unique_id),
2424
wrap_string_with_quotes(dbt.escape_single_quotes(column.name)),
25-
wrap_string_with_quotes(dbt.escape_single_quotes(column.description)),
25+
wrap_string_with_quotes(dbt.escape_single_quotes(column.description) | replace("\\","\\\\") ),
2626
wrap_string_with_quotes(dbt.escape_single_quotes(column.data_type)),
2727
wrap_string_with_quotes(dbt.escape_single_quotes(tojson(column.constraints))),
2828
column.constraints | selectattr('type', 'equalto', 'not_null') | list | length > 0,

0 commit comments

Comments
 (0)