Feature Updates
- Declaration of passthrough variables for the
stg_stripe__card
model. This can, for example, be used to pull in non-standard columns from Stripe such asdescription
,iin
andissuer
. See the README for more details (PR #81).
# dbt_project.yml
vars:
stripe_source:
card_pass_through_columns:
- name: "description"
- name: "iin"
- name: "issuer"
alias: "card_issuer" # optional: define an alias for the column
transform_sql: "cast(card_issuer as string)" # optional: apply transformation to column. must reference the alias if provided
Under the Hood
- Removed un-used columns from the
get_card_columns()
macro and aliased themetadata
field, which is parsed via thestripe__card_metadata
variable, but not included as a field in its entirety instg_stripe__card
by default (PR #83).- This ensures users can utilize the new
card_pass_through_columns
variable to include these fields instg_stripe__card
.
- This ensures users can utilize the new
Contributors
Full Changelog: v0.12.0...v0.12.1