From 5b1bb02325d81f499a8abfbb491fe33a591bde4e Mon Sep 17 00:00:00 2001 From: Mike Stepanovic Date: Fri, 7 Mar 2025 13:24:27 -0700 Subject: [PATCH] Merge main, keeping bronze files --- models/bronze/core/bronze__blocks_tx.sql | 7 +++++++ models/bronze/core/bronze__blocks_tx_FR.sql | 7 +++++++ models/bronze/core/bronze__transactions.sql | 7 +++++++ models/bronze/core/bronze__transactions_FR.sql | 7 +++++++ 4 files changed, 28 insertions(+) create mode 100644 models/bronze/core/bronze__blocks_tx.sql create mode 100644 models/bronze/core/bronze__blocks_tx_FR.sql create mode 100644 models/bronze/core/bronze__transactions.sql create mode 100644 models/bronze/core/bronze__transactions_FR.sql diff --git a/models/bronze/core/bronze__blocks_tx.sql b/models/bronze/core/bronze__blocks_tx.sql new file mode 100644 index 0000000..a3e3432 --- /dev/null +++ b/models/bronze/core/bronze__blocks_tx.sql @@ -0,0 +1,7 @@ +{{ config ( + materialized = 'view' +) }} +{{ streamline_external_table_query_v2( + model = "blocks_tx", + partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER )" +) }} diff --git a/models/bronze/core/bronze__blocks_tx_FR.sql b/models/bronze/core/bronze__blocks_tx_FR.sql new file mode 100644 index 0000000..6541673 --- /dev/null +++ b/models/bronze/core/bronze__blocks_tx_FR.sql @@ -0,0 +1,7 @@ +{{ config ( + materialized = 'view' +) }} +{{ streamline_external_table_FR_query_v2( + model = "blocks_tx", + partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER )" +) }} diff --git a/models/bronze/core/bronze__transactions.sql b/models/bronze/core/bronze__transactions.sql new file mode 100644 index 0000000..a7af4cc --- /dev/null +++ b/models/bronze/core/bronze__transactions.sql @@ -0,0 +1,7 @@ +{{ config ( + materialized = 'view' +) }} +{{ streamline_external_table_query_v2( + model = "transactions", + partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER )" +) }} diff --git a/models/bronze/core/bronze__transactions_FR.sql b/models/bronze/core/bronze__transactions_FR.sql new file mode 100644 index 0000000..7ad9586 --- /dev/null +++ b/models/bronze/core/bronze__transactions_FR.sql @@ -0,0 +1,7 @@ +{{ config ( + materialized = 'view' +) }} +{{ streamline_external_table_FR_query_v2( + model = "transactions", + partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER )" +) }}