Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sdks/go/pkg/beam/core/runtime/graphx/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ func Marshal(edges []*graph.MultiEdge, opt *Options) (*pipepb.Pipeline, error) {

// If there are external transforms that need expanding, do it now.
if m.needsExpansion {
// Remap outputs of expanded external transforms to be the inputs for all downstream consumers
purgeOutputInput(edges, p)
// Merge the expanded components into the existing pipeline
mergeExpandedWithPipeline(edges, p)

// Remap outputs of expanded external transforms to be the inputs for all downstream consumers
// Must happen after merging, so that the inputs in the expanded transforms are also updated.
purgeOutputInput(edges, p)
}

return p, nil
Expand Down