mirror of
https://github.com/FlipsideCrypto/ethereum-models.git
synced 2026-02-06 11:27:00 +00:00
data not null (#1125)
Some checks failed
docs_update / called_workflow_template (push) Has been cancelled
Some checks failed
docs_update / called_workflow_template (push) Has been cancelled
:
This commit is contained in:
parent
25466b9919
commit
36644c2275
@ -2,7 +2,8 @@
|
||||
model,
|
||||
partition_function,
|
||||
balances = false,
|
||||
block_number = true
|
||||
block_number = true,
|
||||
data_not_null = true
|
||||
) %}
|
||||
WITH meta AS (
|
||||
SELECT
|
||||
@ -55,7 +56,9 @@
|
||||
WHERE
|
||||
b.partition_key = s.partition_key
|
||||
AND DATA :error IS NULL
|
||||
AND DATA IS NOT NULL
|
||||
{% if data_not_null %}
|
||||
AND DATA IS NOT NULL
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro v0_streamline_external_table_fr_query(
|
||||
@ -63,7 +66,8 @@
|
||||
partition_function,
|
||||
partition_join_key = "partition_key",
|
||||
balances = false,
|
||||
block_number = true
|
||||
block_number = true,
|
||||
data_not_null = true
|
||||
) %}
|
||||
WITH meta AS (
|
||||
SELECT
|
||||
@ -117,7 +121,9 @@ FROM
|
||||
WHERE
|
||||
b.partition_key = s.{{ partition_join_key }}
|
||||
AND DATA :error IS NULL
|
||||
AND DATA IS NOT NULL
|
||||
{% if data_not_null %}
|
||||
AND DATA IS NOT NULL
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro v0_streamline_external_table_query_decoder(
|
||||
|
||||
@ -4,5 +4,6 @@
|
||||
{{ v0_streamline_external_table_query(
|
||||
model = "beacon_blocks_v2",
|
||||
partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)",
|
||||
block_number = false
|
||||
block_number = false,
|
||||
data_not_null = false
|
||||
) }}
|
||||
|
||||
@ -5,5 +5,6 @@
|
||||
model = "beacon_blocks",
|
||||
partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER )",
|
||||
partition_join_key = "_partition_by_slot_id",
|
||||
block_number = false
|
||||
block_number = false,
|
||||
data_not_null = false
|
||||
) }}
|
||||
|
||||
@ -4,5 +4,6 @@
|
||||
{{ v0_streamline_external_table_fr_query(
|
||||
model = "beacon_blocks_v2",
|
||||
partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER )",
|
||||
block_number = false
|
||||
block_number = false,
|
||||
data_not_null = false
|
||||
) }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user