Closed nszoni closed 1 year ago
Hi @nszoni thanks for opening this issue!
I do have one quick question, are you be chance leveraging the product_pass_through_columns
and order_line_pass_through_columns
variables? If so, I wonder if you are passing the status
and properties
fields into those variables respectively?
If so, you do not need to include those fields as they are already included in the base select statement for the stg_shopify__product and stg_shopify__order_line models. The error is likely occurring due to the variable trying to add the field end of the statements and is thus causing the duplicate fields and the ambiguous column naming error.
If you did want to include these fields still, you could take advantage of the alias argument in the variable config to rename the field. Nevertheless I wanted to highlight that these fields are included in the staging models by default in the package version you are using.
Let me know if this addresses your issue!
Hi Joe!
Good callout! I'll check and get back to you with my findings!:)
Hi @fivetran-joemarkiewicz! Indeed, the issue was including those in the variable! Closing this, thanks:)
Is there an existing issue for this?
Describe the issue
properties
andstatus
columns called twice in the CTE resulting in ambiguitymodels/stg_shopify__order_line.sql
models/stg_shopify__product.sql
Relevant error log or model output
Expected behavior
Columns are called once eliminating the chance of ambiguity.
dbt Project configurations
Package versions
What database are you using dbt with?
bigquery
dbt Version
Additional Context
No response
Are you willing to open a PR to help address this issue?