You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "pequalsnp (via GitHub)" <gi...@apache.org> on 2023/10/31 14:26:18 UTC

[I] [Feature Request]: Golang support/documentation for unbounded DoFns [beam]

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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Golang support/documentation for unbounded DoFns [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #29213:
URL: https://github.com/apache/beam/issues/29213#issuecomment-4534720075

   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.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Golang support/documentation for unbounded DoFns [beam]

Posted by "lostluck (via GitHub)" <gi...@apache.org>.
lostluck commented on issue #29213:
URL: https://github.com/apache/beam/issues/29213#issuecomment-1789810026

   The Go SDK automatically asserts a Splittable DoFn that returns a ProcessContinuation to be unbounded. But only SplittableDoFns. 
   https://beam.apache.org/documentation/programming-guide/#user-initiated-checkpoint
   
   It's unclear if it's a good idea to allow non-splitable DoFns to be able to self checkpoint. The SDK would need execution side changes to enable it. But from the Beam Portability FnAPI layer, the concepts are tightly related. So at best it would be a convenience layer to things under the hood.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Golang support/documentation for unbounded DoFns [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #29213:
URL: https://github.com/apache/beam/issues/29213#issuecomment-4799689615

   This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Golang support/documentation for unbounded DoFns [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #29213: [Feature Request]: Golang support/documentation for unbounded DoFns
URL: https://github.com/apache/beam/issues/29213


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org