Skip to content

Commit cd3eed8

Browse files
committed
Move from json filter to json function (different behaviour)
1 parent 9b1b9ec commit cd3eed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macros/unpack/get_metric_values.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{%- set values = [] -%}
1010

1111
{%- for node in nodes_list -%}
12-
12+
1313
{%- set values_line =
1414
[
1515
wrap_string_with_quotes(node.unique_id),
@@ -20,7 +20,7 @@
2020
wrap_string_with_quotes(node.type),
2121
wrap_string_with_quotes(dbt.escape_single_quotes(node.label)),
2222
wrap_string_with_quotes(node.package_name),
23-
wrap_string_with_quotes(node.filter | tojson),
23+
wrap_string_with_quotes(dbt.escape_single_quotes(tojson(node.filter))),
2424
wrap_string_with_quotes(node.type_params.measure.name),
2525
wrap_string_with_quotes(node.type_params.measure.alias),
2626
wrap_string_with_quotes(node.type_params.numerator | tojson),

0 commit comments

Comments
 (0)