You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Cross-language pipeline options are not picked up in Java DoFns #33074
I would expect these pipeline options to be picked up on Java's side. With some logging, I see the Java SDK recognizing the options at expand time in PTransforms (i.e. expand()), but not at runtime in DoFns (i.e. @ProcessElement).
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
changed the title [-][Bug]: Cross-language pipeline options are not picked up in DoFns[/-][+][Bug]: Cross-language pipeline options are not picked up in Java DoFns[/+]on Nov 11, 2024
@ahmedabu98 I am trying to understand how this would work. So do i tweak the expand() method and the "@ProcessElement" to pass it to the DoFns or is there some other way to do this?
This issue has been marked as stale due to 150 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that’s incorrect or this issue still needs to be addressed, please simply write any comment. If closed, you can reopen the issue at any time. Thank you for your contributions.
Yes the main issue is still not fixed. As i mentioned, In this code we pass pipeline options through PCollection Input(which i think is a rare code pattern) and Runner Context. The first path is not working, we fall back to the second path.
My understanding is that the same set of pipeline options are available to all SDKs via UW but specific options might be not available due to the differences in naming conventions. I haven't tried accessing options via DoFn's process context though and it's possible that some options get dropped when accessing them via that path.
Possibly relevant - #36443 fixed passing pipeline options from Python to Java through external transforms, which may have been the initial issue (sounds like we have more to do here)
Activity
[-][Bug]: Cross-language pipeline options are not picked up in DoFns[/-][+][Bug]: Cross-language pipeline options are not picked up in Java DoFns[/+]Suvrat1629 commentedon Mar 7, 2025
@ahmedabu98 I am trying to understand how this would work. So do i tweak the
expand()method and the "@ProcessElement" to pass it to the DoFns or is there some other way to do this?github-actions commentedon Aug 6, 2025
This issue has been marked as stale due to 150 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that’s incorrect or this issue still needs to be addressed, please simply write any comment. If closed, you can reopen the issue at any time. Thank you for your contributions.
github-actions commentedon Sep 6, 2025
This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.
tarun-google commentedon Sep 17, 2025
.take-issue
15 remaining items
ahmedabu98 commentedon Nov 18, 2025
I think the original issue here is not solved right? A Java DoFn's process context does not include pipeline options passed thru the Python SDK
Abacn commentedon Nov 18, 2025
I remember I checked the pipeline option is honored. The NPE in the example in description was due to other issue (#33074 (comment))
tarun-google commentedon Nov 18, 2025
Yes the main issue is still not fixed. As i mentioned, In this code we pass pipeline options through PCollection Input(which i think is a rare code pattern) and Runner Context. The first path is not working, we fall back to the second path.
chamikaramj commentedon Nov 18, 2025
My understanding is that the same set of pipeline options are available to all SDKs via UW but specific options might be not available due to the differences in naming conventions. I haven't tried accessing options via DoFn's process context though and it's possible that some options get dropped when accessing them via that path.
shunping commentedon Nov 25, 2025
@tarun-google @chamikaramj, is this a release blocker or could we move this to the next release?
chamikaramj commentedon Nov 25, 2025
I don't think this is a release blocker.
shunping commentedon Nov 25, 2025
Sounds good. Will move it to the next release then.
damccorm commentedon Nov 25, 2025
Possibly relevant - #36443 fixed passing pipeline options from Python to Java through external transforms, which may have been the initial issue (sounds like we have more to do here)