Skip to content

Commit

Permalink
refactor: try a different way of using vars
Browse files Browse the repository at this point in the history
  • Loading branch information
njogz committed Sep 29, 2024
1 parent a23f55c commit 5ea363e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/root/document_metadata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WITH source_table AS (
FROM {{ source('couchdb', env_var('POSTGRES_TABLE')) }}
)

{% if {{ var("start_timestamp") }} is not none and {{ var("batch_size") }} is not none %}
{% if var("start_timestamp") is not none and var("batch_size") is not none %}
WITH batched_data AS (
SELECT *
FROM source_table
Expand Down

0 comments on commit 5ea363e

Please sign in to comment.