Hi Tarun, It sounds like you have done good thinking about this. Your description sounds quite good. I encourage opening a PR!
Kenn On Thu, Nov 19, 2026 at 12:21 PM Tarun N <[email protected]> wrote: > Hi Kenn, > > Thanks for taking the time to review the proposal and for sharing your > questions. > > To answer your questions: > > *1. Backward compatibility with existing name-only options* > > Yes, preserving existing name-only PipelineOptions behaviour is a > fundamental requirement of this implementation. Existing unqualified > command-line options should continue working as they do today. > > The intention is to introduce qualified names as an additional way to > distinguish options, rather than replace the existing naming mechanism. > > *2. Same-name options across different groups* > > My proposed approach is to distinguish options using their qualified names > when necessary. > > The intended behaviour is: > > - > > If two options have the same name and compatible types, they should > retain the existing shared-value behaviour. > - > > If two options have the same name but incompatible types, they should > be independently addressable using their qualified names. > - > > If an unqualified option is ambiguous because of conflicting types, > the user should receive an informative error explaining how to qualify it. > > I've implemented the initial Java and Python changes around this approach, > including qualified command-line parsing, getter/setter resolution, and > Runner API serialization. > > I also recognise that preserving the existing same-type compatibility > behaviour is particularly important, so I'm reviewing the relevant edge > cases and adding explicit regression coverage for them. > > *3. Background and motivation* > > I picked up this issue while exploring Apache Beam contribution > opportunities. It was an existing open issue that I found interesting > because PipelineOptions naming and configuration become increasingly > difficult to manage when multiple option interfaces or groups are involved. > > I haven't encountered this as a blocking problem in a production Beam > pipeline myself, so I don't want to overstate the urgency or claim a > specific user scenario. > > My intention is to understand the original requirement properly and > contribute a solution that addresses the underlying problem without > breaking existing behaviour. > > I've completed an initial implementation on my local branch and have run > the targeted Java and Python tests: > > - > > Java: 257 tests passed. > - > > Python: 162 passed, 2 skipped. > > I haven't opened a PR yet because I'd like to get feedback on the design > before proceeding. > > I'll prepare a more detailed implementation write-up and share the changes > for review. > > Thanks again for your guidance. > > Regards, > Tarun > > > On Thu, 19 Nov 2026 at 21:00, Kenneth Knowles via dev <[email protected]> > wrote: > >> Hi Tarun, >> >> Thanks for doing this. It seems like a good idea. Do you have a write-up >> or a change we can look at? >> >> Here are my questions and feedback in the meantime: >> >> - do existing name-only pipeline options keep working? (required, of >> course - all things that work today should keep working) >> - if two same-name pipeline options exist in two groups, how do we know >> if they are actually the same? previously, pipeline options were >> "compatible" across different sets of options if they had the same type and >> they would get the same value, or the pipeline would fail if they were >> incompatible. How does that work with your change? >> >> To be honest, this issue has been just sitting around for many years, and >> I haven't heard about it, so I don't really have a memory of where it came >> up and what the requirements are for a fix. So is it something that came up >> for you when using Beam, or did you grab it as a good first contribution? I >> am just trying to understand the urgency and to make sure that the fix >> solves the problem it is intended to solve. >> >> Kenn >> >> On Tue, Nov 17, 2026 at 1:05 PM Tarun N <[email protected]> wrote: >> >>> Hi everyone, >>> >>> I'm working on BEAM-19331 (Namespace for Pipeline Options). >>> >>> I've implemented an initial approach covering qualified option names in >>> the Java and Python SDKs, including command-line parsing, getter/setter >>> resolution, and Runner API serialization. >>> >>> I've also added regression tests for qualified options, conflicting >>> names, and serialization round-trips. >>> >>> Before opening a PR, I'd appreciate feedback on the proposed approach, >>> particularly: >>> >>> - Whether the qualified naming convention is appropriate. >>> - Compatibility with existing unqualified PipelineOptions. >>> - Whether additional changes are needed in shared Java runner code. >>> - Any concerns regarding backward compatibility. >>> >>> Issue: https://github.com/apache/beam/issues/19331 >>> >>> Thanks, >>> Tarun >>> >>
