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

   The Java version of the "[Pipeline option 
patterns](https://beam.apache.org/documentation/patterns/pipeline-options/)" 
article simply does not work.
   
   When creating a PipelineOptions inside of a DoFn, all get methods that 
return ValueProvider<T\> will return null instead.  The closest working example 
I could find was from Google's guide on [ValueProviders in Dataflow 
templates|#using-valueprovider-in-your-functions].  The pattern involves 
passing the ValueProvider into a DoFn class's constructor, storing it, then 
later accessing it at runtime.
   
    
   
   Imported from Jira 
[BEAM-10700](https://issues.apache.org/jira/browse/BEAM-10700). Original Jira 
may contain additional context.
   Reported by: mtruscello.


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