You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@joellabes suggested that I post this question here. I'd initially posted this over on the dbt-utils issue tracker.
Basically, as far as I'm aware, snowflake can combine arrays, check for intersection and aggregate but it is not easy to subtract arrays using a built in function. I don't know if this behavior is the same in other databases, so this may not be broadly useful, but I have found a way to do this in Snowflake that may be useful as a utils function.
I described the method in reasonable depth over on the issue page dbt-labs/dbt-utils#609
It sounds like for this to be rolled out in dbt-utils, this would need to be broadly useful across databases, hence the need for further discussion.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@joellabes suggested that I post this question here. I'd initially posted this over on the dbt-utils issue tracker.
Basically, as far as I'm aware, snowflake can combine arrays, check for intersection and aggregate but it is not easy to subtract arrays using a built in function. I don't know if this behavior is the same in other databases, so this may not be broadly useful, but I have found a way to do this in Snowflake that may be useful as a utils function.
I described the method in reasonable depth over on the issue page dbt-labs/dbt-utils#609
It sounds like for this to be rolled out in dbt-utils, this would need to be broadly useful across databases, hence the need for further discussion.
Beta Was this translation helpful? Give feedback.
All reactions