From 1ce0493488650454eb6fae2c981d17dde4bbf825 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Fri, 15 Mar 2019 15:08:48 -0400 Subject: [PATCH 1/2] possibly reckless fix for #1352 --- core/dbt/context/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From f96dedf3a9e2c3c2f716092f4552af2da8069b7b Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Tue, 12 Mar 2019 15:09:07 -0600 Subject: [PATCH 2/2] redshift can just change this on you apparently --- test/integration/029_docs_generate_tests/test_docs_generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 },