{{ config (
    materialized = 'view'
) }}

{% set model = "validator_vote_accounts_2" %}
{{ streamline_external_table_query(
    model,
    partition_function = "to_date(split_part(split_part(file_name, '/', -2), '_result', 1), 'YYYY_MM_DD')",
    partition_name = "_partition_by_created_date",
    unique_key = "",
    other_cols = "split_part(split_part(file_name, '/', -2),'.',-1)::string AS status"
) }}
