From a2b5f73e57a24a53d81132187967a6371257f2f1 Mon Sep 17 00:00:00 2001 From: Brian Abelson Date: Wed, 28 Feb 2018 14:51:22 -0500 Subject: [PATCH] fix logging line --- dbt/parser.py | 2 +- dbt/utils.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dbt/parser.py b/dbt/parser.py index 128d296fb8a..ce7fd3c4a26 100644 --- a/dbt/parser.py +++ b/dbt/parser.py @@ -219,7 +219,7 @@ def parse_node(node, node_path, root_project_config, package_project_config, profile = dbt.utils.get_profile_from_project(root_project_config) default_schema = profile.get('schema', 'public') node['schema'] = default_schema - + node['alias'] = dbt.utils.get_alias(node) context = dbt.context.parser.generate(node, root_project_config, {"macros": macros}) diff --git a/dbt/utils.py b/dbt/utils.py index 2cada5644e1..dc0665432d4 100644 --- a/dbt/utils.py +++ b/dbt/utils.py @@ -39,6 +39,7 @@ def __init__(self, profile, adapter, node, use_temp=False): self.node = node self.schema = node.get('schema') self.name = node.get('name') + # set alias, defaults to name self.alias = get_alias(node) self.node['alias'] = get_alias(node) @@ -48,6 +49,7 @@ def __init__(self, profile, adapter, node, use_temp=False): else: self.table = self.alias + self.materialized = get_materialization(node) self.sql = node.get('injected_sql')