Skip to content

Commit

Permalink
Fix chainlink ocr incremental error on gas_daily and request_daily (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
anon-r-7 authored Sep 7, 2023
1 parent d1d76b9 commit e0bc52b
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
2 changes: 1 addition & 1 deletion models/chainlink/bnb/chainlink_bnb_ocr_gas_daily.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
2 changes: 1 addition & 1 deletion models/chainlink/bnb/chainlink_bnb_ocr_request_daily.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
2 changes: 1 addition & 1 deletion models/chainlink/fantom/chainlink_fantom_ocr_gas_daily.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
2 changes: 1 addition & 1 deletion models/chainlink/gnosis/chainlink_gnosis_ocr_gas_daily.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ WITH
{% if is_incremental() %}
WHERE
fulfilled.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
AND reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
OR reverted.block_time >= date_trunc('day', now() - interval '{{incremental_interval}}' day)
{% endif %}
GROUP BY
1, 2
Expand Down

0 comments on commit e0bc52b

Please sign in to comment.