-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature Request] Expose some LoadJobConfig attributes for configuration/Allow truncate write mode #3
Comments
Just a note to show where API doc is: https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.job.LoadJobConfig.html |
Probably implement this by creating a config section called |
I finally got a chance to test PR #5 @GrgDev LoadJobConfig params can be passed, but it would not work well with auto table creation. For example, if you Which parameters are you trying to customize? |
oops, you mentioned in the original post. write_disposition, correct? |
Personal Note: |
Right now, there is no way to customize how writes are done because of the exclusive use of the LoadConfigJob with default attributes.
target-bigquery/target_bigquery/__init__.py
Line 188 in 80b167c
Some of these attributes could be exposed for user configuration.
In my particular use case, I would like to change the
write_disposition
attribute to work in truncate mode instead of append mode. This way, when using Singer with this target to pipe data to BigQuery in a time partitioned table, if something goes wrong during one of the time periods, I can just rerun the job and overwrite the partitions in question instead of worrying about duplicate data.https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.job.LoadJobConfig.html#google.cloud.bigquery.job.LoadJobConfig.write_disposition
The text was updated successfully, but these errors were encountered: