PR #15 includes the following updates:
- Updated the
is_most_recent_record
field instg_recharge__subscription_history
to partition byid
, or bysubscription_id
ifid
is unavailable in the source table. Previously, partitioning occurred solely onsubscription_id
(prior to applying COALESCE), which was unintended and caused errors in Redshift when the source table only containedid
.
PR #13 includes the following updates:
- The following columns were added to model
stg_recharge__address
:- country
- payment_method_id
- Note: If you have already added any of these fields as passthrough columns to the
recharge__address_passthrough_columns
var, you will need to remove or alias these fields from the var to avoid duplicate column errors.
-
Added staging model
stg_recharge__checkout
. See this doc for the fields added and their definitions.- This model is disabled by default but can be enabled by setting variable
recharge__checkout_enabled
to true in yourdbt_project.yml
file. See the Enable/disable models and sources section of the README for more information. - This model can also be passed additional columns beyond the predefined columns by using the variable
recharge__checkout_passthrough_columns
. See the Passing Through Additional Columns section of the README for more information on how to set this variable.
- This model is disabled by default but can be enabled by setting variable
-
Added the following columns to model
stg_recharge__customer
. See this doc for field definitions.billing_first_name
billing_last_name
billing_company
billing_city
billing_country
- Updated
stg_recharge__subscription_history
to coalesceid
andsubscription_id
as thesubscription_id
since either version can be present in the source.
PR #12 includes the following updates:
- For Fivetran Recharge connectors created on or after June 18, 2024, the
ORDER
source table has been renamed toORDERS
. The package will now use theORDERS
table if it exists and thenORDER
if not.- If you have both versions but wish to use the
ORDER
table instead, you can set the variablerecharge__using_orders
to false in yourdbt_project.yml
. - See the June 2024 connector release notes and the related README section for more details.
- If you have both versions but wish to use the
- Updated the pull request templates.
- Included auto-releaser GitHub Actions workflow to automate future releases.
PR #10 includes the following updates:
- In
stg_recharge__subscription_history
, updated model to use the source'supdated_at
column to determine most recent record. This column is part of the primary key for the history table and is definitive, while the prior_fivetran_synced
was less meaningful.
🎉 This is the initial release of this package! 🎉
- Materializes Recharge staging tables, which leverage data in the format described by this ERD. These staging tables clean, test, and prepare your Recharge data from Fivetran's connector for analysis by doing the following:
- Names columns for consistency across all packages and for easier analysis
- Adds freshness tests to source data
- Adds column-level testing where applicable. For example, all primary keys are tested for uniqueness and non-null values.
- Generates a comprehensive data dictionary of your Recharge data through the dbt docs site.
- These tables are designed to work simultaneously with our Recharge transformation package.
- For more information refer to the README.