fivetran / dbt_fivetran_utils

Helper utils for our packages
29 stars 19 forks source link

[FEATURE] - Add `persist_pass_through_columns` -capability for non-mapping passthrough variables #104

Open fivetran-catfritz opened 1 year ago

fivetran-catfritz commented 1 year ago

Currently when a non-mapped passthrough/list-style variable is passed to persist_pass_through_columns macro, no error occurs but blank fields are generated. This macro should be updated to handle either list- or dict- style variables. The logic used in fill_pass_through_columns is an example of how this could be done.

This will allow this macro to be brought into older packages, that might not yet use this macro and therefore are expecting list-style, with less friction on the user's end as they will not have to change their variables.