Skip to content

Datatype numeric/float update#45

Merged
fivetran-avinash merged 12 commits intomainfrom
datatype/numeric-float-updates
Mar 13, 2026
Merged

Datatype numeric/float update#45
fivetran-avinash merged 12 commits intomainfrom
datatype/numeric-float-updates

Conversation

@fivetran-avinash
Copy link
Copy Markdown
Contributor

@fivetran-avinash fivetran-avinash commented Mar 10, 2026

PR Overview

Package version introduced in this PR:

  • 1.4.0

This PR addresses the following Issue/Feature(s):

  • GA-1010090

Summary of changes:

  • Correct Recurly monetary data types to be numerics.

Submission Checklist

  • Alignment meeting with the reviewer (if needed)
    • Timeline and validation requirements discussed
  • Provide validation details:
    • Validation Steps: Check for unintentional effects (e.g., add/run consistency & integrity tests)
    • Testing Instructions: Confirm the change addresses the issue(s)
    • Focus Areas: Complex logic or queries that need extra attention
  • Merge any relevant open PRs into this PR

Changelog

  • Draft changelog for PR
  • Final changelog for release review

@fivetran-avinash fivetran-avinash self-assigned this Mar 10, 2026
@fivetran-avinash fivetran-avinash added the docs:ready Triggers the docs generator workflow. label Mar 10, 2026
@fivetran-avinash fivetran-avinash marked this pull request as ready for review March 10, 2026 19:14
@fivetran-avinash fivetran-avinash added docs:ready Triggers the docs generator workflow. and removed docs:ready Triggers the docs generator workflow. labels Mar 10, 2026
Copy link
Copy Markdown
Collaborator

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few changes before approval

CHANGELOG.md Outdated
Comment on lines +5 to +10
## Schema/Data Change
**20 total changes • 19 possible breaking changes**

| Data Model(s) | Change type | Old | New | Notes |
| ---------- | ----------- | -------- | -------- | ----- |
| `recurly__account_overview` | Data type | `float` or `int` | `numeric` | `float` → `numeric`: `total_charges`, `total_credits`, `total_balance`, `total_discounts`, `charges_this_month`, `credits_this_month`, `balance_this_month`, `discounts_this_month` <br> `int` → `numeric`: `total_taxes`, `taxes_this_month` |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot to take in. Let's consider making this more easily understood for users. My thoughts:

  • Use the schema/data change table to only mention the datatype change, not the individual field changes.
    • On this note, consolidate all the stg_ models into one row in this table.
  • Create a bullet list below the schema/data change table that mentions the individual field datatype changes. This way we provide all the information, but make the schema/data change table easy to scan and then provide the full list below.
    • In the full list we can just focus on model, datatype -> datatype: field(s) so it's not a long wall of lists.

Copy link
Copy Markdown
Contributor Author

@fivetran-avinash fivetran-avinash Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the update with sub-bullets for the model/datatype->datatype/field hierarchy for easiest readability.

tax_type,
type,
cast(unit_amount as {{ dbt.type_float() }}) as unit_amount,
cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the unit_amount field in stg_recurly__subscription_change_history also needs to be cast accordingly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, forgot to comment here but this was updated there.

Copy link
Copy Markdown
Collaborator

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fivetran-avinash fivetran-avinash added docs:ready Triggers the docs generator workflow. and removed docs:ready Triggers the docs generator workflow. labels Mar 13, 2026
@fivetran-avinash fivetran-avinash merged commit 8e49f28 into main Mar 13, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs:ready Triggers the docs generator workflow.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants