Skip to content

Commit

Permalink
Use env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Nov 22, 2023
1 parent 294ae1e commit 8b95e34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions models/root/couchdb.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{% set import_couchdb_data = select_table(source('couchdb','couchdb'), ref('couchdb_test_data')) %}

{{
config(
materialized = 'view',
Expand All @@ -8,8 +6,7 @@
]
)
}}

SELECT
doc->>'type' AS type,
*
FROM {{ import_couchdb_data }}
FROM {{ env_var('ROOT_POSTGRES_SCHEMA') }}.{{ env_var('POSTGRES_TABLE') }}

0 comments on commit 8b95e34

Please sign in to comment.