Skip to content

Commit 6c2bfc1

Browse files
Merge branch 'main' into add-version-to-output
2 parents 38a0417 + b01684f commit 6c2bfc1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integration_tests/models/marts/metrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ metrics:
3636
# Specify the measure you are creating a proxy for.
3737
measure: total_count
3838
filter: |
39-
{{ Dimension('dim__id') }} > 0
39+
{{ Dimension('dim__id') }} > '2023-04-01'
4040
- name: new_metric_with_window
4141
label: "New cumulative Metric"
4242
type: cumulative

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)