-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[v2 Bug] BigQuery Job IDs for Fusion being reused #15481
Copy link
Copy link
Closed
Labels
adapter:bigqueryConcerns the BigQuery adapter / SQL dialect.Concerns the BigQuery adapter / SQL dialect.area:adaptersThe adapter framework/layer connecting Fusion to warehouses (dbt-adapter* crates).The adapter framework/layer connecting Fusion to warehouses (dbt-adapter* crates).bugengine:v2Concerns the dbt Fusion (v2) engine.Concerns the dbt Fusion (v2) engine.source:customerReported by or on behalf of a paying customer.Reported by or on behalf of a paying customer.triage
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
adapter:bigqueryConcerns the BigQuery adapter / SQL dialect.Concerns the BigQuery adapter / SQL dialect.area:adaptersThe adapter framework/layer connecting Fusion to warehouses (dbt-adapter* crates).The adapter framework/layer connecting Fusion to warehouses (dbt-adapter* crates).bugengine:v2Concerns the dbt Fusion (v2) engine.Concerns the dbt Fusion (v2) engine.source:customerReported by or on behalf of a paying customer.Reported by or on behalf of a paying customer.triage
Is this a new bug in dbt v2.x compared to the latest version of dbt 1.x?
Current Behavior
We are seeing 409 errors when reaching out to BigQuery in our dbt ops:
-- error message: Unknown: [BigQuery] googleapi: Error 409: Already Exists: Job discord-data-vault-prd:US.FHgd4oEZfOAzBB4dmmoyJo6aVon, duplicateWe have validated that these jobIDs have indeed been used by other dbt ops reaching out, but they were on different days and with different assets. I'm wondering if this has to do with the jobID being generated differently compared to core and fusion as fusion uses the arrow ADBC to connect to BQ, as we don't see these jobID collisions when we revert our assets to running on core again. I noticed that this was an issue seen in core for retries of the same job - dbt-labs/dbt-adapters#1756 - but this isn't our particular case either.
Expected Behavior
We don't expect to see jobID collisions for BigQuery job submissions.
Steps To Reproduce
Not sure on how to forcibly reproduce, we see these when we have a large number of assets migrated to fusion.
Relevant log output
`-- error message: Unknown: [BigQuery] googleapi: Error 409: Already Exists: Job discord-data-vault-prd:US.FHgd4oEZfOAzBB4dmmoyJo6aVon, duplicate`Environment
Which database adapter are you using?
other (describe in Additional Context)
Is this a discrepancy vs. dbt 1.x?
Additional Context
No response