diff --git a/core/dbt/context/parser.py b/core/dbt/context/parser.py index 2a9d2a87881..1cec010f674 100644 --- a/core/dbt/context/parser.py +++ b/core/dbt/context/parser.py @@ -48,7 +48,7 @@ def do_docs(*args): def source(db_wrapper, model, config, manifest): def do_source(source_name, table_name): model.sources.append([source_name, table_name]) - return '' + return db_wrapper.adapter.Relation.create_from_node(config, model) return do_source diff --git a/test/integration/029_docs_generate_tests/test_docs_generate.py b/test/integration/029_docs_generate_tests/test_docs_generate.py index 2164f8e3bfb..26339897ad5 100644 --- a/test/integration/029_docs_generate_tests/test_docs_generate.py +++ b/test/integration/029_docs_generate_tests/test_docs_generate.py @@ -146,7 +146,7 @@ def _redshift_stats(self): "diststyle": { "id": "diststyle", "label": "Dist Style", - "value": "EVEN", + "value": AnyStringWith(None), "description": "Distribution style or distribution key column, if key distribution is defined.", "include": True },