diff --git a/models/root/couchdb.sql b/models/root/couchdb.sql index 87d64239..8baf5fd4 100644 --- a/models/root/couchdb.sql +++ b/models/root/couchdb.sql @@ -1,5 +1,3 @@ -{% set import_couchdb_data = select_table(source('couchdb','couchdb'), ref('couchdb_test_data')) %} - {{ config( materialized = 'view', @@ -12,4 +10,4 @@ SELECT doc->>'type' AS type, * -FROM {{ import_couchdb_data }} +FROM {{ env_var('ROOT_POSTGRES_SCHEMA') }}.{{ env_var('POSTGRES_TABLE') }}