Closed fivetran-joemarkiewicz closed 2 years ago
Are you a current Fivetran customer?
Fivetran created Bug
Describe the bug
The calculation for most_recent_sale_date is currently using a min aggregation. However, it should instead be max. https://github.com/fivetran/dbt_stripe/blob/1815eb873fc7a6be03da158db5e4ee990f994e61/models/stripe__customer_overview.sql#L71-L74
most_recent_sale_date
min
max
Expected behavior
The most_recent_sale_date should be the max date.
The merged PR above resolved this issue and the fix is live in the latest version of the package.
Are you a current Fivetran customer?
Fivetran created Bug
Describe the bug
The calculation for
most_recent_sale_date
is currently using amin
aggregation. However, it should instead bemax
. https://github.com/fivetran/dbt_stripe/blob/1815eb873fc7a6be03da158db5e4ee990f994e61/models/stripe__customer_overview.sql#L71-L74Expected behavior
The
most_recent_sale_date
should be the max date.