From 6eeae79c3e94a863253334677a91b6242380ca39 Mon Sep 17 00:00:00 2001 From: Ilias Xenogiannis Date: Tue, 30 Jul 2024 14:40:38 +0300 Subject: [PATCH] Update get_sde_or_context.sql --- macros/utils/get_sde_or_context.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/utils/get_sde_or_context.sql b/macros/utils/get_sde_or_context.sql index af333d31..f7cf178d 100644 --- a/macros/utils/get_sde_or_context.sql +++ b/macros/utils/get_sde_or_context.sql @@ -17,7 +17,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0 {% macro postgres__get_sde_or_context(schema, identifier, lower_limit, upper_limit, prefix = none, single_entity = true, database = target.database) %} {# Create a relation from the inputs then get all columns in that context/sde table #} - {% set relation = api.Relation.create(database = none, schema = schema, identifier = identifier) %} + {% set relation = api.Relation.create(database = target.database, schema = schema, identifier = identifier) %} {# Get the schema name to be able to alias the timestamp and id #} {% set schema_get_query %} select schema_name from {{ relation }}