Skip to content

Commit 2d0e99a

Browse files
authored
Merge pull request #349 from dbt-labs/fix/issue-print-logs-alias
🐛 Use `alias` rather than the model name
2 parents 638f3ac + 433ff08 commit 2d0e99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/on-run-end/print_dbt_project_evaluator_issues.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
{{ print("\n-- " ~ result.node.alias ~ " --") }}
1111

1212
{% set unique_id_model_checked = result.node.depends_on.nodes[0] %}
13-
{% set name_model_checked = unique_id_model_checked.split('.')[-1] %}
1413

1514
{% set model_details = graph["nodes"][unique_id_model_checked] %}
15+
{% set name_model_checked = model_details.alias %}
1616
{% set model_schema = model_details.schema %}
1717
{% set model_database = model_details.database %}
1818
{% set db_schema = model_database ~ "." ~ model_schema if model_database else model_schema %}

0 commit comments

Comments
 (0)