[
https://issues.apache.org/jira/browse/BEAM-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320918#comment-16320918
]
Luke Cwik edited comment on BEAM-3297 at 1/10/18 7:25 PM:
----------------------------------------------------------
If a runner harness asks you to execute a bundle, you should always go through
the start bundle/finish bundle even if the runner sends the SDK zero elements.
This is important because people write functions that take zero inputs and
produce one or more outputs.
To my knowledge, both Java and Python call StartBundle/FinishBundle even on
empty bundles.
was (Author: lcwik):
If a runner harness asks you to execute a bundle, you should always go through
the start bundle/finish bundle even if the runner sends the SDK zero elements.
This is important because people write functions that take zero inputs and
produce one or more outputs.
> StartBundle/FinishBundle should be called only if there are elements
> ---------------------------------------------------------------------
>
> Key: BEAM-3297
> URL: https://issues.apache.org/jira/browse/BEAM-3297
> Project: Beam
> Issue Type: Bug
> Components: sdk-go
> Reporter: Henning Rohde
> Priority: Minor
> Fix For: Not applicable
>
>
> I believe the semantics is lazy. Exec currently calls SB/FB eagerly
> irrespectively of whether any elements are emitted.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)