snowplow / dbt-snowplow-utils

Snowplow utility functions to be used in conjunction with the snowplow-web dbt package.
Other
13 stars 6 forks source link

Add macro to get field from sde/context column #129

Closed rlh1994 closed 1 year ago

rlh1994 commented 1 year ago

Description & motivation

Currently we have to manually write the sql to get a field from an sde or context field every time, this can lead to us having to split models or macros when they are otherwise the same. I can also never remember which one is which.

This is the first step to adding other warehouses to the combine_columns macro, I'm not currently working on that but this will be useful if/when we do develop that further.

Checklist