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

Invalid value error with dbt test --store-failures #232

Closed
jtcohen6 opened this issue Oct 15, 2021 · 0 comments · Fixed by #233
Closed

Invalid value error with dbt test --store-failures #232

jtcohen6 opened this issue Oct 15, 2021 · 0 comments · Fixed by #233
Labels
bug Something isn't working

Comments

@jtcohen6
Copy link
Contributor

Compilation Error in test not_null_model_a_id (models/schema.yml)
  Invalid value provided for 'persist_docs'. Expected dict but got value: None

  > in macro comment_clause (macros/adapters.sql)
  > called by macro spark__create_table_as (macros/adapters.sql)
  > called by macro create_table_as (macros/adapters/common.sql)
  > called by macro statement (macros/core.sql)
  > called by macro materialization_test_default (macros/materializations/test.sql)
  > called by test not_null_model_a_id (models/schema.yml)

The issue is with how we've implemented persist_docs on Spark, which is subtly different from other databases. It's called right within the create table as statement, which we use for tests. If persist_docs isn't a dictionary, we raise a compilation error... but we probably shouldn't if it's None.

I think this will be a simple fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant