Closed advolut-team closed 1 month ago
Hi @advolut-team ! Thank you for the kind words and putting this together so thoughtfully!
Our team understands the issue and we agree that your solution should do the trick. Feel free to open the PR against our repo!
Hi @advolut-team ! Took a first look at your PR and it looks mostly good.
I had one question and a few requests before merging your PR. Please let me know if you have any questions.
Hi @advolut-team ! your test should now be live in the latest version of the shopify
package.
Let us know if you have any questions or issues! Thanks again for putting this PR together.
Is there an existing issue for this?
Describe the issue
Hi Fivetran folks,
Firstly, thank you for your hard work in maintaining this repository, it has helped me tremendously.
For context, I'm using Fivetran and to extract Shopify data, transform it with this repo, and load it into AWS Redshift connector. I started using this connector since last week and I only have data for July and August 2024
The problem I'm facing is in the table
shopify__customer_cohorts
, the lifetime columnstotal_price_lifetime
,order_count_lifetime
,line_item_count_lifetime
andcohort_month_number
are having NULL values. The image below shows the NULLs:I believe this problem occurs because the incremental load CTE --
backfill_lifetime_sums
-- gives NULL value. Here is the complied dbt script of the CTE:I have identified a potential fix, which is to add a
COALESCE
function in these lines, like below:I'm interested to hear your perspective. If you think my potential fix is okay, could I raise a PR? Thanks!
Relevant error log or model output
No response
Expected behavior
The lifetime columns should have a value instead of NULL, as shown below:
I got this expected result after adding the
COALESCE
function as mentioned abovedbt Project configurations
Package versions
What database are you using dbt with?
redshift
dbt Version
Additional Context
No response
Are you willing to open a PR to help address this issue?