Skip to content

Commit

Permalink
Lets change the logic here
Browse files Browse the repository at this point in the history
  • Loading branch information
ilias1111 committed Oct 4, 2024
1 parent fbe9a55 commit fdef02a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ and you may not use this file except in compliance with the Snowplow Personal an
You may obtain a copy of the Snowplow Personal and Academic License Version 1.0 at https://docs.snowplow.io/personal-and-academic-license-1.0/
#}


select * {% if target.type == 'databricks' %}
except(derived_tstamp_date)
{% if target.type in ('databricks','spark') %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_cart_interactions'), except=['derived_tstamp_date'] )}}
{% else %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_cart_interactions')) }}
{% endif %}

from {{ ref('snowplow_ecommerce_cart_interactions') }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
#}


select * {% if target.type == 'databricks' %}
except(derived_tstamp_date)
{% if target.type in ('databricks','spark') %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_checkout_interactions'), except=['derived_tstamp_date'] )}}
{% else %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_checkout_interactions')) }}
{% endif %}

from {{ ref('snowplow_ecommerce_checkout_interactions') }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
#}


select * {% if target.type == 'databricks' %}
except(derived_tstamp_date)
{% if target.type in ('databricks','spark') %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_product_interactions'), except=['derived_tstamp_date'] )}}
{% else %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_product_interactions')) }}
{% endif %}

from {{ ref('snowplow_ecommerce_product_interactions') }}

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
#}


select * {% if target.type == 'databricks' %}
except(derived_tstamp_date)
{% if target.type in ('databricks','spark') %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_transaction_interactions'), except=['derived_tstamp_date'] )}}
{% else %}
SELECT {{ dbt_utils.star(from=ref('snowplow_ecommerce_transaction_interactions')) }}
{% endif %}

from {{ ref('snowplow_ecommerce_transaction_interactions') }}
from {{ ref('snowplow_ecommerce_transaction_interactions') }}

0 comments on commit fdef02a

Please sign in to comment.