Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
update

update

update

update
  • Loading branch information
amishas157 committed Oct 4, 2024
1 parent faa9ce9 commit 9a71c5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions macros/add_quote.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro add_quote(value) %}
'{{ value }}'
{% endmacro %}
4 changes: 0 additions & 4 deletions models/staging/stg_claimable_balances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ models:
- incremental_not_null:
date_column_name: "closed_at"
greater_than_equal_to: "2 day"
- incremental_accepted_values:
date_column_name: "closed_at"
greater_than_equal_to: "2 day"
values: [0, 1, 2]

- name: deleted
description: '{{ doc("deleted") }}'
Expand Down
6 changes: 1 addition & 5 deletions tests/generic/incremental_accepted_values.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
{% set date_column_name = date_column_name | default('closed_at') %}
{% set greater_than_equal_to = greater_than_equal_to | default('2 day') %}
{% set less_than_equal_to = less_than_equal_to | default('') %}
{% if quote %}
{% set values = values | map(attribute='string') | join(', ') %}
{% else %}
{% set values = values | join(', ') %}
{% endif %}
{% set values = "'" + values | join("', '") + "'" %}

with all_values as (

Expand Down

0 comments on commit 9a71c5d

Please sign in to comment.