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

   ### What would you like to happen?
   
   This seems to be supported/explained for Java/Python but not for Golang, for 
example in the SDF documentation
   
   > In Java, you can use 
[@UnboundedPerElement](https://beam.apache.org/releases/javadoc/current/index.html?org/apache/beam/sdk/transforms/DoFn.UnboundedPerElement.html)
 or 
[@BoundedPerElement](https://beam.apache.org/releases/javadoc/current/index.html?org/apache/beam/sdk/transforms/DoFn.BoundedPerElement.html)
 to annotate your DoFn. In Python, you can use 
[@unbounded_per_element](https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.core.html#apache_beam.transforms.core.DoFn.unbounded_per_element)
 to annotate the DoFn.
   
   I think the right thing to do in Golang is implement `IsBounded() bool`, but 
it would be good to have that in the docs.  It is also unclear how to have a 
regular, non-splittable, do Fn be unbounded if that is even possible.  The 
pubsubio library uses `beam.External` which takes a `bounded` parameter, but I 
don't see any other examples of unbounded DoFns in golang.
   
   ### Issue Priority
   
   Priority: 3 (nice-to-have improvement)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [ ] Component: Java SDK
   - [X] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 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