From a4125e771f2a31baf9b5eb74951f609379c8a9e6 Mon Sep 17 00:00:00 2001 From: Njuguna Ndung'u Date: Mon, 9 Oct 2023 18:44:22 +0300 Subject: [PATCH] feat: use env variables --- models/root/couchdb.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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') }}