Skip to content

Commit

Permalink
Merge pull request #476 from fishtown-analytics/remove-bad-spec-warni…
Browse files Browse the repository at this point in the history
…ng-msg

give fake path to archive model to avoid annoying warning
  • Loading branch information
drewbanin authored Jul 6, 2017
2 parents 2487369 + d34c69d commit 88ca656
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbt/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,12 @@ def parse_archives_from_project(project):
config['source_schema'] = archive_config.get('source_schema')
config['target_schema'] = archive_config.get('target_schema')

fake_path = [config['target_schema'], config['target_table']]
archives.append({
'name': table.get('target_table'),
'root_path': project.get('project-root'),
'resource_type': NodeType.Archive,
'path': project.get('project-root'),
'path': os.path.join('archive', *fake_path),
'package_name': project.get('name'),
'config': config,
'raw_sql': '-- noop'
Expand Down

0 comments on commit 88ca656

Please sign in to comment.