AN-3331/datashare_test_bug (#567)

- deleted file
This commit is contained in:
Julius Remigio 2023-05-30 10:34:48 -07:00 committed by GitHub
parent c08d1585c2
commit 51bd7aad3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,45 +0,0 @@
{% set dag = {} %}
{% for key, value in graph.nodes.items() -%}
{%
if value.refs
and set(value.fqn).intersection(["gold"])
and value.config.materialized not in ["view", "test"]
and value.config.enabled
and not value.sources
-%}
==================================================================
{{ key }}
{{ value.database }}.{{ value.schema }}.{{ value.alias }}
{%- set name = value.database + "." + value.schema + "." + value.alias %}
{{ "MATERIALIZATION: "~ value.config.materialized }}
{{ value["fqn"]}}
------------------------------------------------------------------
Dependencies:
{{ value.depends_on.nodes | unique | list | pprint }}
ALL ANCESTORS:
{% set ancestors = fromjson("[" ~ get_ancestors(value, include_depth=true, exclude_source=false)[:-1] ~ "]") -%}
{{- ancestors | pprint -}}
{# build dictionary[db_object, dag] #}
{%- set _result = fromjson("[" ~ get_ancestors(value, exclude_source=true)[:-1] ~ "]") %}
{% if _result %}
{% do _result.insert(0, key) %}
{% do dag.update({name : _result | reverse|list}) %}
{% else %}
{% do dag.update({name : [key] }) %}
{%- endif %}
Refs:
{%- set not_ephemeral = [] -%}
{% for item in value.refs if not item[0].startswith("_") %}
{%- set _ = not_ephemeral.append(item) -%}
{%- endfor -%}
{{ not_ephemeral | pprint}}
Sources:
{{ value.sources | pprint }}
{%- endif %}
{%- endfor %}
total views: {{ views | length}}
view with most dependencies: {{ views | sort(reverse=True) | first | pprint }}