jrmccluskey commented on a change in pull request #15966:
URL: https://github.com/apache/beam/pull/15966#discussion_r748567812
##########
File path: sdks/go/pkg/beam/core/runtime/exec/sideinput.go
##########
@@ -58,7 +59,16 @@ func NewSideInputAdapter(sid StreamID, sideInputID string, c
*coder.Coder, wm Wi
}
func (s *sideInputAdapter) NewIterable(ctx context.Context, reader
StateReader, w typex.Window) (ReStream, error) {
- key, err := EncodeElement(s.kc, []byte(iterableSideInputKey))
+ return s.NewKeyedIterable(ctx, reader, w, iterableSideInputKey)
+}
+
+func (s *sideInputAdapter) NewKeyedIterable(ctx context.Context, reader
StateReader, w typex.Window, iterKey interface{}) (ReStream, error) {
+ // TODO(jrmccluskey): re-write to ensure support for non-string keys
Review comment:
I don't love this little hack, it will need a more substantial re-write
to support non-string keys. For now this establishes the function signature to
be correct; however, it will have to get tweaked once I get the end-to-end code
change completed.
--
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]