mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
checkpoint
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
|
||||
{%- set raw_reference = match[1:]|join()|trim -%}
|
||||
|
||||
{%- do all_hard_coded_references_list.append(raw_reference) -%}
|
||||
{%- do all_hard_coded_references_list.append("'" ~ dbt.escape_single_quotes(raw_reference) ~ "'") -%}
|
||||
|
||||
{%- endfor -%}
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% set all_hard_coded_references = set(all_hard_coded_references_list)|sort|join(', ')|trim %}
|
||||
{% set all_hard_coded_references = set(all_hard_coded_references_list)|sort %}
|
||||
|
||||
{{ return(all_hard_coded_references) }}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"cast(" ~ dbt_project_evaluator.is_not_empty_string(node.description) | trim ~ " as boolean)",
|
||||
"''" if not node.column_name else wrap_string_with_quotes(dbt.escape_single_quotes(node.column_name)),
|
||||
wrap_string_with_quotes(node.meta | tojson),
|
||||
wrap_string_with_quotes(dbt.escape_single_quotes(hard_coded_references)),
|
||||
dbt.array_construct(hard_coded_references, "string"),
|
||||
wrap_string_with_quotes(node.get('depends_on',{}).get('macros',[]) | tojson),
|
||||
"cast(" ~ dbt_project_evaluator.is_not_empty_string(node.test_metadata) | trim ~ " as boolean)"
|
||||
]
|
||||
|
||||
@@ -26,7 +26,7 @@ select
|
||||
cast(True as boolean) as is_described,
|
||||
cast(null as {{ dbt.type_string() }}) as column_name,
|
||||
cast(null as {{ dbt.type_string() }}) as meta,
|
||||
cast(null as {{ dbt.type_string() }}) as hard_coded_references,
|
||||
{{ dbt.array_construct([], dbt.type_string()) }} as hard_coded_references,
|
||||
cast(null as {{ dbt.type_string() }}) as macro_dependencies,
|
||||
cast(True as boolean) as is_generic_test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user