|
93 | 93 | '{{ null if test_model is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_model | string) }}', {# test_model #} |
94 | 94 | '{{ null if test_combination is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_combination | string) }}', {# test_combination_of_columns #} |
95 | 95 | '{{ null if test_column_value is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_column_value | string) }}', {# test_column_value #} |
96 | | - '{{ null if test_min_value is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_min_value | string) }}', {# test_column_min_value #} |
97 | | - '{{ null if test_max_value is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_max_value | string) }}', {# test_column_max_value #} |
| 96 | + {{ "'" ~ test_min_value ~ "'" if test_min_value is not none else 'null' }}, {# test_column_min_value -- bare null (not blank) so it casts cleanly downstream #} |
| 97 | + {{ "'" ~ test_max_value ~ "'" if test_max_value is not none else 'null' }}, {# test_column_max_value -- bare null (not blank) so it casts cleanly downstream #} |
98 | 98 | '{{ null if test_from_condition is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_from_condition | string) }}', {# test_relationship_from_model_condition #} |
99 | 99 | '{{ null if test_to_model is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_to_model | string) }}', {# test_to_model #} |
100 | 100 | '{{ null if test_to_field is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_to_field | string) }}', {# test_relationship_to_field #} |
|
161 | 161 | '{{ null if test_model is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_model | string) }}', {# test_model #} |
162 | 162 | '{{ null if test_combination is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_combination | string) }}', {# test_combination_of_columns #} |
163 | 163 | '{{ null if test_column_value is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_column_value | string) }}', {# test_column_value #} |
164 | | - '{{ null if test_min_value is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_min_value | string) }}', {# test_column_min_value #} |
165 | | - '{{ null if test_max_value is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_max_value | string) }}', {# test_column_max_value #} |
| 164 | + {{ "'" ~ test_min_value ~ "'" if test_min_value is not none else 'null' }}, {# test_column_min_value -- bare null (not blank) so it casts cleanly downstream #} |
| 165 | + {{ "'" ~ test_max_value ~ "'" if test_max_value is not none else 'null' }}, {# test_column_max_value -- bare null (not blank) so it casts cleanly downstream #} |
166 | 166 | '{{ null if test_from_condition is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_from_condition | string) }}', {# test_relationship_from_model_condition #} |
167 | 167 | '{{ null if test_to_model is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_to_model | string) }}', {# test_to_model #} |
168 | 168 | '{{ null if test_to_field is none else adapter.dispatch('escape_singlequote', 'dbt_observability')(test_to_field | string) }}', {# test_relationship_to_field #} |
|
0 commit comments