[Feature Request]: Set quota project in `beam.io.ReadFromBigQuery`
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
### What would you like to happen?
recreation of https://github.com/apache/beam/issues/31126
This issue relates to the Python SDK, but it is probably relevant to other SDKs as well:
We have a use case where queries initiated by `beam.io.ReadFromBigQuery` should be billed on a specific GCP Project ID.
As we use a custom container, the only option for now would be setting the env. var. `GOOGLE_CLOUD_QUOTA_PROJECT` in the Dockerfile - but it affects all other GCP services as well.
It would be best making it configurable via the connector (i.e., `beam.io.ReadFromBigQuery(..., quota_project_id='some-project-id)`).
When implementing, you could gain inspiration from similar feature in `beam.io.WriteToBigQuery`: https://github.com/apache/beam/pull/16186.
### Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
### Issue Components
- [x] Component: Python SDK
- [x] Component: Java SDK
- [x] Component: Go SDK
- [x] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner
Contributor guide
Assessment
This issue has not been assessed yet.