dbt_fivetran_utils
dbt_fivetran_utils copied to clipboard
[FEATURE] - Add `persist_pass_through_columns` -capability for non-mapping passthrough variables
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.