Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commenting out schema tests produces compilation errors #328

Closed
jthandy opened this issue Mar 14, 2017 · 3 comments
Closed

commenting out schema tests produces compilation errors #328

jthandy opened this issue Mar 14, 2017 · 3 comments
Assignees

Comments

@jthandy
Copy link
Member

jthandy commented Mar 14, 2017

using standard yml comment syntax (#), running a dbt compile gives me the following error:

Traceback (most recent call last):
  File "/usr/local/bin/dbt", line 11, in <module>
    load_entry_point('dbt==0.7.1', 'console_scripts', 'dbt')()
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/main.py", line 31, in main
    handle(args)
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/main.py", line 49, in handle
    res = run_from_args(parsed)
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/main.py", line 103, in run_from_args
    result = task.run()
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/task/run.py", line 18, in run
    self.project, self.args)
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/compilation.py", line 52, in compile_and_print_status
    results.update(compiler.compile())
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/compilation.py", line 546, in compile
    macro_generator)
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/compilation.py", line 523, in load_all_nodes
    self.get_parsed_schema_tests(root_project, all_projects))
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/compilation.py", line 508, in get_parsed_schema_tests
    relative_dirs=project.get('source-paths', [])))
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/parser.py", line 369, in load_and_parse_yml
    return parse_schema_tests(result, root_project, all_projects)
  File "/usr/local/Cellar/dbt/HEAD-e060aeb/libexec/lib/python3.6/site-packages/dbt/parser.py", line 259, in parse_schema_tests
    for config in configs:
TypeError: 'NoneType' object is not iterable
@cmcarthur cmcarthur self-assigned this Mar 14, 2017
@cmcarthur
Copy link
Member

@jthandy can you send me the file?

@cmcarthur
Copy link
Member

fix with test: #330

@cmcarthur
Copy link
Member

fix is in development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants