Skip to content

[v2 Bug] BigQuery Job IDs for Fusion being reused #15481

Description

@achang52

Is this a new bug in dbt v2.x compared to the latest version of dbt 1.x?

  • I believe this is a new bug in dbt v2.x
  • I have searched the existing issues and could not find a duplicate

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, duplicate

We 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

- OS:
- CPU: (x86 or ARM)
- dbt distribution and version: (`dbt --version`)

Which database adapter are you using?

other (describe in Additional Context)

Is this a discrepancy vs. dbt 1.x?

  • Yes — this works in dbt 1.x but not in dbt v2.x

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

adapter:bigqueryConcerns the BigQuery adapter / SQL dialect.area:adaptersThe adapter framework/layer connecting Fusion to warehouses (dbt-adapter* crates).bugengine:v2Concerns the dbt Fusion (v2) engine.source:customerReported by or on behalf of a paying customer.triage

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions