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

   Dynamic splits in SDF in Go are performed on 
[ProcessSizedElementsAndRestrictions](https://github.com/apache/beam/blob/3d987e18bae1bbce18915b0d805b1db8339e92e8/sdks/go/pkg/beam/core/runtime/exec/sdf.go#L217)
 transforms, and therefore when encoding the split elements for a SplitResponse 
(to eventually be sent as a BundleApplication proto) it should be using the 
input coder of the ProcessSizedElementsAndRestrictions. However, right now a 
shortcut is taken. Since a DataSource currently always precedes a 
ProcessSizedElementsAndRestrictions transform, and has identical input and 
output coders, we currently encode split elements with the existing DataSource 
input coders.
   
   However, this will eventually lead to issues if any other transforms are 
ever placed preceding the ProcessSizedElementsAndRestrictions, so it's 
important to eventually fix this to use the correct input coder.
   
   Implementation-wise, this requires adding code to create an input coder for 
the ProcessSizedElementsAndRestrictions transform based on its input type, and 
then to provide access for encoding elements with that coder (probably through 
the SplittableUnit interface).
   
   Imported from Jira 
[BEAM-10579](https://issues.apache.org/jira/browse/BEAM-10579). Original Jira 
may contain additional context.
   Reported by: danoliveira.


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