Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
Add support for the schema field for bigquery load jobs.
This field is helpful if you cannot rely on the schema being autodetected properly. Without this field, there is no way to override the schema for WRITE_TRUNCATE jobs. Setting the schema on the table itself doesn't help, as it is overwritten by the job.
Community Note
Description
Add support for the
schema
field for bigquery load jobs.https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#JobConfigurationLoad
This field is helpful if you cannot rely on the schema being autodetected properly. Without this field, there is no way to override the schema for
WRITE_TRUNCATE
jobs. Setting the schema on the table itself doesn't help, as it is overwritten by the job.New or Affected Resource(s)
Potential Terraform Configuration
References
As a start, I pushed what I think would be the necessary change here: https://github.com/GoogleCloudPlatform/magic-modules/compare/master...colincadams:colincadams/add-schema-bq-load
The configuration is copied from
google_bigquery_table
, save for the description which I pulled from the API docs.b/374161354