Skip to content

Commit

Permalink
Update get_sde_or_context.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
ilias1111 committed Jul 30, 2024
1 parent 6b641f7 commit 6eeae79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/utils/get_sde_or_context.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 6eeae79

Please sign in to comment.