This release introduces the following updates.
Bug Fixes
- Resolved flipped logic around the
zuora__using_multicurrency
variable. (#22)- Ensured that, for multicurrency users,
*_amount_home_currency
fields are used and that*_amount
values are used for single-currency users. Previously, this was erroneously flipped. The models impacted include:zuora__line_item_history
: This affects thegross_revenue
anddiscount_revenue
values (these values are then used to calculatenet_revenue
).zuora__monthly_recurring_revenue
: This affects themrr_expected_current_month
value.int_zuora__transaction_grouped
: This affects daily amount values for invoices, discounts, taxes and credit balance adjustments to flow downstream into thezuora__account_daily_overview
model.
- Customers must set the
zuora__using_multicurrency
variable totrue
to enable multicurrency. (#22)
- Ensured that, for multicurrency users,
- Leveraged the
{{ dbt.type_timestamp() }}
macro within staging models for all timestamp fields. Certain Redshift warehouses sync these fields astimestamp with time zone
fields by default, causing errors in thezuora
package. This macro appropriately removes timezone values from the UTC timestamps and ensures successful compilations of these models.- For more details, please refer to the dbt_zuora_source v0.2.2 release.
- Also cast
subscription_period_started_at
andsubscription_period_ended_at
as{{ dbt.type_timestamp() }}
inzuora__line_item_enhanced
to remove date/timestamp mismatches on theunion all
function. (#20)
Under the Hood
- Replaced the deprecated
dbt.current_timestamp_backcompat()
function withdbt.current_timestamp()
to ensure all timestamps are captured in UTC. (#20)- This change is applied in the following end models:
zuora__billing_history
zuora__line_item_history
zuora__subscription_overview
- As well as the intermediate models:
int_zuora__account_enriched
int_zuora__mrr_date_spine
int_zuora__transaction_date_spine
- This change is applied in the following end models:
- Added consistency tests within
integration_tests
for thezuora__billing_history
,zuora__monthly_recurring_revenue
andzuora__subscription_overview
models. (#20 & #22) - Updated
run_models.sh
to remove duplicative Buildkite script.
Documentation
- Added Quickstart model counts to README. (#19)
- Corrected references to connectors and connections in the README. (#19)
Full Changelog: v0.3.1...v0.3.2