shunping commented on PR #41433:
URL: https://github.com/apache/beam/pull/41433#issuecomment-7181261827

   > > I'm wondering whether we should handle this downstream in 
RequestResponseIO or push it upstream as an option/feature in BatchElements 
(e.g., returning WindowedValues or tracking element metadata) so other 
transforms can benefit as well.
   > 
   > I think it would be nice, but in practice I'm having a hard time imagining 
an experience that makes sense for everyone. For example, take RunInference - 
it takes the outputs of the BatchElements call and feeds them directly into a 
model as a sequence - wrapping the elements in windowed objects wouldn't work 
here. Most downstream consumers probably don't actually care as well.
   > 
   > The place where it does make sense is where you're doing some batching -> 
an operation -> unbatching, which is not actually that generic IMO (and there 
is a workaround available as shown in this PR). Disclaimer, I haven't reviewed 
the PR so don't consider this an approval, but the approach generally is 
reasonable at least.
   > 
   > ;tldr - I'm probably -1 on trying to make this generic.
   
   Makes sense—thanks for the input, @damccorm! I'm onboard with keeping this 
scoped to `RequestResponseIO`.


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