[Feature Request]: Honor --quota_project_id in Python GCS/Pub/Sub IO and the Java-backed BigQuery STORAGE_WRITE_API path
Maintainer thường phản hồi trong vòng 1 ngày
@shahar1 đang làm issue này rồi.
Từ ngày 13/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
What would you like to happen?
Follow-up to #37431 / #39203.
#39203 adds a --quota_project_id pipeline option to Python GoogleCloudOptions, which attributes quota/billing of API requests to a chosen GCP project (the x-goog-user-project header). The option lives on the GCP-wide options class, but currently only the Python BigQuery IO transforms honor it (ReadFromBigQuery, ReadAllFromBigQuery, WriteToBigQuery with FILE_LOADS/STREAMING_INSERTS, ReadBigQueryChangeHistory).
It should be honored by the rest of the Python GCP IO so the option means what its name says. The client libraries already support it, so this is plumbing only:
- GCS (
apache_beam/io/gcp/gcsio.py):storage.Client(...)acceptsclient_options={'quota_project_id': ...}(honored bygoogle.cloud.client.Client);resourcemanager_v3.ProjectsClientused by_get_project_numbertakesclient_optionstoo.GcsIOalready receivespipeline_options, so the value is available where the client is built. - Pub/Sub (
apache_beam/io/gcp/pubsub.py,runners/direct/transform_evaluator.py):pubsub.PublisherClient(...)/SubscriberClient(...)forwardclient_optionsto the GAPIC client, which acceptsquota_project_id. WriteToBigQuery(method=STORAGE_WRITE_API): this path expands to the JavaStorageWriteToBigQuerytransform. Java already supports--bigQueryQuotaProjectId(BigQueryOptions), but the Python option never reaches it:PipelineOptionsTranslation.fromProtoconvertslower_underscore→lowerCamel, soquota_project_idarrives asquotaProjectId, which no Java option reads. Options: have the Python transform/expansion forward it under the Java name, or have Java'sBigQueryOptions.getBigQueryQuotaProjectId()fall back to a genericquotaProjectId. (Note: on Dataflow, options reach the Java worker in the legacy{"options": {...}}format without case conversion, so a solution must cover that path as well.)- Other GCP IOs that build clients (Bigtable, Spanner, …) should be checked the same way.
Until then, the option's help text says it is currently honored by BigQuery IO only.
Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
Issue Components
- Component: Python SDK
- Component: Java SDK
- Component: Go SDK
- 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: Prism Runner
- Component: Twister2 Runner
- Component: Hazelcast Jet Runner
- Component: Google Cloud Dataflow Runner
- Ngôn ngữ chính
- Java
- Star
- 8.7k
- Fork
- 4.8k
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 371
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/beam
-
Release notes links wrongĐang mởawaiting triage bug P3
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
apache/beam#41197 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: [Python] WriteToJson silently rounds floats to 10 decimal placesCó thể đã có người làm @Abhi2939 đã nhận 1 ngày trước. Đang mởio P2 python yaml
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
apache/beam#41102 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/beam#39624 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: PubsubIO used in batch incorrect batch cutoff sizeCó thể đã có người làm @1fanwang đã nhận 78 ngày trước. Đang mởbug io P3 pinned pubsub
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/beam#28011 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
build P3 sub-task
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Enhancing the Issue TemplateĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
SasanLabs/VulnerableApp#912 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
desktop edt not responding
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
datafusion-contrib/StreamFusion#653 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Absolute row/column index 0 is ignored for images, hyperlinks and commentsCó thể đã có người làm @fanOfSunny đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày