Skip to content

Commit

Permalink
fix logging line
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Abelson committed Feb 28, 2018
1 parent b11ebb0 commit a2b5f73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
2 changes: 2 additions & 0 deletions dbt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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')

Expand Down

0 comments on commit a2b5f73

Please sign in to comment.