Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .buildkite/scripts/run_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dbt deps
dbt seed --target "$db" --full-refresh
dbt run --target "$db" --full-refresh
dbt test --target "$db"
dbt run --vars '{zuora__using_credit_balance_adjustment: false, zuora__using_taxation_item: false, zuora__using_refund: false, zuora__using_refund_invoice_payment: false}' --target "$db"
dbt test --target '{zuora__using_credit_balance_adjustment: false, zuora__using_taxation_item: false, zuora__using_refund: false, zuora__using_refund_invoice_payment: false}' --target "$db"
dbt run --vars '{zuora__using_credit_balance_adjustment: false, zuora__using_taxation_item: false, zuora__using_refund: false, zuora__using_refund_invoice_payment: false}' --target "$db" --full-refresh
dbt test --target "$db"

dbt run-operation fivetran_utils.drop_schemas_automation --target "$db"
67 changes: 66 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,72 @@
# dbt_zuora_source version.version
# dbt_zuora_source v0.2.2
This release includes the following updates:

## Bug Fixes
- Leveraged the `{{ dbt.type_timestamp() }}` macro within the staging models for all timestamp fields. ([#17](https://github.com/fivetran/dbt_zuora_source/pull/17))
- This is needed as certain Redshift warehouses sync these fields as `timestamp with time zone` fields by default, causing compilation errors in downstream models in the `dbt_zuora` package. This macro appropriately removes timezone values from the UTC timestamps and ensures successful compilations of these models.

| **Models** | **Field updates cast as timestamp** |
|------------------------------------|------------------------------------------------------------------------------------|
| `stg_zuora__account` | `created_date`, `last_invoice_date`, `tax_exempt_effective_date`, `tax_exempt_expiration_date`, `updated_date` |
| `stg_zuora__amendment` | `created_date`, `updated_date` |
| `stg_zuora__contact` | `created_date`, `updated_date` |
| `stg_zuora__credit_balance_adjustment` | `cancelled_on`, `created_date`, `updated_date` |
| `stg_zuora__invoice_item` | `charge_date`, `created_date`, `updated_date` |
| `stg_zuora__invoice_payment` | `created_date`, `updated_date` |
| `stg_zuora__invoice` | `created_date`, `last_email_sent_date`, `posted_date`, `updated_date` |
| `stg_zuora__order` | `created_date`, `updated_date` |
| `stg_zuora__payment_method` | `created_date`, `last_failed_sale_transaction_date`, `last_transaction_date_time`, `updated_date` |
| `stg_zuora__payment` | `cancelled_on`, `created_date`, `settled_on`, `submitted_on`, `updated_date` |
| `stg_zuora__product_rate_plan_charge` | `created_date`, `updated_date` |
| `stg_zuora__product_rate_plan` | `created_date`, `updated_date` |
| `stg_zuora__product` | `created_date`, `updated_date` |
| `stg_zuora__rate_plan` | `created_date`, `updated_date` |
| `stg_zuora__rate_plan_charge` | `created_date`, `updated_date` |
| `stg_zuora__refund_invoice_payment` | `created_date`, `updated_date` |
| `stg_zuora__refund` | `cancelled_on`, `created_date`, `refund_transaction_time`, `settled_on`, `submitted_on`, `updated_date` |
| `stg_zuora__subscription` | `cancelled_date`, `contract_acceptance_date`, `contract_effective_date`, `created_date`, `original_created_date`, `service_activation_date`, `term_end_date`, `term_start_date`, `updated_date` |
| `stg_zuora__taxation_item` | `created_date`, `exchange_rate_date`, `tax_date`, `updated_date` |

## Documentation
- Corrected references to connectors and connections in the README. ([#16](https://github.com/fivetran/dbt_zuora_source/pull/16))
- Moved badges at top of the README below the H1 header to be consistent with popular README formats. ([#17](https://github.com/fivetran/dbt_zuora_source/pull/17))

## Under the Hood
- Updated `run_models.sh` to remove duplicative Buildkite script.

# dbt_zuora_source v0.2.2-a1
This pre-release introduces the following updates:

## Bug Fixes
- Leveraged the `{{ dbt.type_timestamp() }}` macro within the staging models for all timestamp fields. ([#17](https://github.com/fivetran/dbt_zuora_source/pull/17))
- This is needed as certain Redshift warehouses sync these fields as `timestamp with time zone` fields by default, causing compilation errors in downstream models in the `dbt_zuora` package. This macro appropriately removes timezone values from the UTC timestamps and ensures successful compilations of these models.

| **Models** | **Field updates cast as timestamp** |
|------------------------------------|------------------------------------------------------------------------------------|
| `stg_zuora__account` | `created_date`, `last_invoice_date`, `tax_exempt_effective_date`, `tax_exempt_expiration_date`, `updated_date` |
| `stg_zuora__amendment` | `created_date`, `updated_date` |
| `stg_zuora__contact` | `created_date`, `updated_date` |
| `stg_zuora__credit_balance_adjustment` | `cancelled_on`, `created_date`, `updated_date` |
| `stg_zuora__invoice_item` | `charge_date`, `created_date`, `updated_date` |
| `stg_zuora__invoice_payment` | `created_date`, `updated_date` |
| `stg_zuora__invoice` | `created_date`, `last_email_sent_date`, `posted_date`, `updated_date` |
| `stg_zuora__order` | `created_date`, `updated_date` |
| `stg_zuora__payment_method` | `created_date`, `last_failed_sale_transaction_date`, `last_transaction_date_time`, `updated_date` |
| `stg_zuora__payment` | `cancelled_on`, `created_date`, `settled_on`, `submitted_on`, `updated_date` |
| `stg_zuora__product_rate_plan_charge` | `created_date`, `updated_date` |
| `stg_zuora__product_rate_plan` | `created_date`, `updated_date` |
| `stg_zuora__product` | `created_date`, `updated_date` |
| `stg_zuora__rate_plan` | `created_date`, `updated_date` |
| `stg_zuora__rate_plan_charge` | `created_date`, `updated_date` |
| `stg_zuora__refund_invoice_payment` | `created_date`, `updated_date` |
| `stg_zuora__refund` | `cancelled_on`, `created_date`, `refund_transaction_time`, `settled_on`, `submitted_on`, `updated_date` |
| `stg_zuora__subscription` | `cancelled_date`, `contract_acceptance_date`, `contract_effective_date`, `created_date`, `original_created_date`, `service_activation_date`, `term_end_date`, `term_start_date`, `updated_date` |
| `stg_zuora__taxation_item` | `created_date`, `exchange_rate_date`, `tax_date`, `updated_date` |

## Documentation
- Corrected references to connectors and connections in the README. ([#16](https://github.com/fivetran/dbt_zuora_source/pull/16))
- Moved badges at top of the README below the H1 header to be consistent with popular README formats. ([#17](https://github.com/fivetran/dbt_zuora_source/pull/17))


# dbt_zuora_source v0.2.1
[PR #11](https://github.com/fivetran/dbt_zuora_source/pull/11) includes the following update:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p align="center">
# Zuora Source dbt package ([Docs](https://fivetran.github.io/dbt_zuora_source/))

<p align="left">
<a alt="License"
href="https://github.com/fivetran/dbt_zuora_source/blob/main/LICENSE">
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /></a>
Expand All @@ -10,8 +12,6 @@
<img src="https://img.shields.io/badge/Contributions-welcome-blueviolet" /></a>
</p>

# Zuora Source dbt package ([Docs](https://fivetran.github.io/dbt_zuora_source/))

## What does this dbt package do?
- Materializes [Zuora staging tables](https://fivetran.github.io/dbt_zuora_source/#!/overview/github_source/models/?g_v=1), which leverage data in the format described by [this ERD](https://fivetran.com/docs/applications/zuora#schemainformation). These staging tables clean, test, and prepare your Zuora data from [Fivetran's connector](https://fivetran.com/docs/applications/zuora) for analysis by doing the following:
- Naming columns for consistency across all packages and easier analysis
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'zuora_source'
version: '0.2.1'
version: '0.2.2'
config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]

Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

Loading