paragpratim opened a new pull request, #41329:
URL: https://github.com/apache/beam/pull/41329
<!--
Thank you for your contribution! Follow this checklist to help us
incorporate your contribution quickly and easily:
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
- [ ] Replace these instructions with a description of your change and why
you have made it.
- [ ] Mention the appropriate issue in your description (for example:
`addresses #123` or `fixes #456`).
- [ ] Update `CHANGES.md` with noteworthy changes.
See [CONTRIBUTING.md]() for more details.
-->
Adds an optional reservation setting to Java `BigQueryIO.Write` for
`FILE_LOADS`. This allows load jobs to specify a reservation managed in another
project instead of relying only on the job project's assignment.
The reservation is passed to regular, temporary-table, and schema-update
load jobs. It supports `ValueProvider` for runtime configuration.
Existing behavior is unchanged when no reservation is specified.
`withLoadJobProjectId` continues to control the project in which the load
job is created; the reservation setting does not change it.
Fixes #41212
**Validation**
- Reservation and file-load unit tests: passed (15 passed, 6 skipped).
- Java formatting and Checkstyle: passed.
- Live BigQuery test: the load job used the specified reservation. The
[Dataflow test
pipeline](https://github.com/paragpratim/bq-central/blob/7c917453cacd979a1174b2525581ad598e1d3d29/dataflow/src/main/java/com/example/StreamingDrTest.java)
uses separate job and reservation projects.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]