youngoli commented on a change in pull request #15191:
URL: https://github.com/apache/beam/pull/15191#discussion_r673387434
##########
File path: sdks/go/pkg/beam/core/runtime/exec/sdf_invokers_test.go
##########
@@ -382,3 +382,50 @@ func (fn *VetKvSdf) ProcessElement(rt *VetRTracker, i, j
int, emit func(*VetRest
rest.ProcessElm = true
emit(rest)
}
+
+// VetEmptyInitialSplitSdf runs an SDF in order to test that these methods get
called properly,
+// each method will flip the corresponding flag in the passed in
VetRestriction,
+// overwrite the restriction's Key and Val with the last seen input elements,
+// and retain the other fields in the VetRestriction.
+type VetEmptyInitialSplitSdf struct {
Review comment:
Style Nit: This could probably be implemented more succinctly through
[type embedding](https://golang.org/doc/effective_go#embedding) (kinda like
inheritance, you can use all the methods of VetSdf, just changing
SplitRestriction). Not worth blocking the PR on since the code works perfectly
fine, just throwing it out there for future reference.
--
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]