apache / apache/beam

[Feature Request]: Set quota project in `beam.io.ReadFromBigQuery`

Open
#37,431 3 comments 0 reactions 1 assignee Claimed by @shahar1 View on GitHub
go java new feature P2 python typescript
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.