diff --git a/macros/tests/sequence_gaps.sql b/macros/tests/sequence_gaps.sql index 650b335..84a9aa9 100644 --- a/macros/tests/sequence_gaps.sql +++ b/macros/tests/sequence_gaps.sql @@ -19,6 +19,8 @@ ) AS {{ previous_column }} FROM {{ table }} + WHERE + block_timestamp::date <= current_date - 1 ) SELECT {{ partition_sql + "," if partition_sql }}