Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: BigQuery Copy jobs do not set write disposition to WRITE_APPEND after first copy #26587

Closed
2 of 15 tasks
Polber opened this issue May 8, 2023 · 0 comments · Fixed by #26608
Closed
2 of 15 tasks

Comments

@Polber
Copy link
Contributor

Polber commented May 8, 2023

What happened?

There was a bug filed for a similar issue with BQ load jobs, #24535, that appears to still have an error path on Python SDK when copying the jobs from temporary tables to their final destination.

When using BigQueryIO Write with WRITE_TRUNCATE disposition, the first bundle is copied correctly, but the subsequent bundle does not set the disposition to WRITE_APPEND for itself and future bundles as intended. This leads to a "table exists" error thrown by BQ as the call to BQ tries to create a new table for the table already created by the first bundle.

Issue Priority

Priority: 1 (data loss / total loss of function)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants