data not null (#1125)
Some checks failed
docs_update / called_workflow_template (push) Has been cancelled

:
This commit is contained in:
drethereum 2025-07-31 13:16:16 -06:00 committed by GitHub
parent 25466b9919
commit 36644c2275
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 7 deletions

View File

@ -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(

View File

@ -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
) }}

View File

@ -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
) }}

View File

@ -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
) }}