Skip to content

Commit

Permalink
Merge pull request #2 from oaknorthbank/remove-missing-vars-and-use-d…
Browse files Browse the repository at this point in the history
…ot-notation

Remove unused vars and use dot notation
  • Loading branch information
tomwphillips authored Oct 3, 2024
2 parents a8f5bf0 + 4b36109 commit 4052cdb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions macros/on-run-end/print_dbt_project_evaluator_issues.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
{{ print("\n-- " ~ result.node.fqn | join(".") ~ " --") }}

{% set unique_id_model_checked = result.node.depends_on.nodes[0] %}

{% set model_details = graph["nodes"][unique_id_model_checked] %}
{% set name_model_checked = model_details.alias %}
{% set model_schema = quote ~ model_details.schema ~ quote %}
{% set model_database = quote ~ model_details.database ~ quote if model_details.database else None %}
{% set db_schema = model_database ~ "." ~ model_schema if model_database else model_schema %}

{% set sql_statement %}
select * from {{ model_details['relation_name'] }}
select * from {{ model_details.relation_name }}
{% endset %}

{% set query_results = run_query(sql_statement) %}
Expand Down

0 comments on commit 4052cdb

Please sign in to comment.