Skip to content

Commit

Permalink
[BEAM-12696] Update NewTaggedExternal to not require inputs (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccluskey authored and ryanthompson591 committed Aug 10, 2021
1 parent 152f74b commit 8099ee2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sdks/go/pkg/beam/core/graph/edge.go
Expand Up @@ -387,7 +387,13 @@ func NewTaggedExternal(g *Graph, s *Scope, payload *Payload, ins []*Inbound, out
edge.Op = External
edge.Payload = payload

windowingStrategy := inputWindow([]*Node{ins[0].From})
var windowingStrategy *window.WindowingStrategy
if len(ins) == 0 {
windowingStrategy = window.DefaultWindowingStrategy()
} else {
windowingStrategy = inputWindow([]*Node{ins[0].From})
}

for _, o := range outs {
o.To.w = windowingStrategy
o.To.bounded = bounded
Expand Down

0 comments on commit 8099ee2

Please sign in to comment.