From a3f6b57c52fae342fb9335e7e9964e9ef199198e Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Tue, 25 Jun 2024 12:29:44 +0100 Subject: [PATCH] Add note about lake loader workaround --- models/base/scratch/snowplow_unified_base_events_this_run.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/base/scratch/snowplow_unified_base_events_this_run.sql b/models/base/scratch/snowplow_unified_base_events_this_run.sql index d48d3ee..8a3e6e3 100644 --- a/models/base/scratch/snowplow_unified_base_events_this_run.sql +++ b/models/base/scratch/snowplow_unified_base_events_this_run.sql @@ -103,6 +103,8 @@ with base_query as ( {{ base_events_query }} ) +{# NOTE: This lakeloader workaround should be removed when Snowflake support structured types in regular tables https://docs.snowflake.com/en/sql-reference/data-types-structured #} + {% if var('snowplow__snowflake_lakeloader', False) -%} {% set base_query_cols = get_column_schema_from_query( 'select * from (' + base_events_query +') a') %} {%- endif -%}