joshtree41 opened a new issue, #41863:
URL: https://github.com/apache/beam/issues/41863

   ### What would you like to happen?
   
   The `SpannerIO.readChangeStream()` transform lets you set the metadata 
instance, database, and table via `.with<>` methods, but there's no project 
option. The metadata `SpannerConfig` always inherits the project ID of the 
change stream's source database.
   
   This prevents a common setup: a single, centrally managed metadata instance 
owned by a data platform team, serving change stream pipelines for Spanner 
databases spread across multiple application projects. With the current 
limitation, each source project needs its own metadata instance or database, 
with separate provisioning and IAM per project. It might not sound like that 
big of a deal, but it can be a pain as the number of projects increases.
   
   Proposal: add an optional `withMetadataProjectId(String)`. If unset, keep 
current behavior (use the source project). In expand(), use it when building 
the partition metadata DatabaseId and SpannerConfig.
   
   This seems backward compatible and _I think_ it's small in scope. Happy to 
help test. Thanks!
   
   ### Issue Priority
   
   Priority: 2 (default / most feature requests should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [x] 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: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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]

Reply via email to