Skip to content

Commit

Permalink
add empty check (#7462)
Browse files Browse the repository at this point in the history
  • Loading branch information
B1boid authored Jan 14, 2025
1 parent 15ff6d4 commit 8730fcc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{ config(
schema = 'bebop_rfq_arbitrum',
alias = 'trades',
tags = ['prod_exclude'],
partition_by = ['block_month'],
materialized = 'incremental',
file_format = 'delta',
Expand Down Expand Up @@ -58,6 +57,8 @@ bebop_raw_data AS (
{% if is_incremental() %}
AND {{ incremental_predicate('evt.evt_block_time') }}
{% endif %}
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.maker_tokens')), '$[0]')) > 0
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.taker_tokens')), '$[0]')) > 0
),

unnested_array_taker AS (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ bebop_raw_data AS (
{% if is_incremental() %}
AND {{ incremental_predicate('evt.evt_block_time') }}
{% endif %}
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.maker_tokens')), '$[0]')) > 0
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.taker_tokens')), '$[0]')) > 0
),

unnested_array_taker AS (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ bebop_raw_data AS (
{% if is_incremental() %}
AND {{ incremental_predicate('evt.evt_block_time') }}
{% endif %}
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.maker_tokens')), '$[0]')) > 0
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.taker_tokens')), '$[0]')) > 0
),

unnested_array_taker AS (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ bebop_raw_data AS (
{% if is_incremental() %}
AND {{ incremental_predicate('evt.evt_block_time') }}
{% endif %}
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.maker_tokens')), '$[0]')) > 0
AND json_array_length(json_extract((JSON_EXTRACT(ex."order", '$.taker_tokens')), '$[0]')) > 0
),

unnested_array_taker AS (
Expand Down

0 comments on commit 8730fcc

Please sign in to comment.