Skip to content

Commit

Permalink
Disable singleIterate (#23042)
Browse files Browse the repository at this point in the history
* Disable singleIterate

* Comment with TODO
  • Loading branch information
damccorm committed Sep 6, 2022
1 parent 57f5c2c commit b2a6f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/go/pkg/beam/core/runtime/exec/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func (n *DataSource) ID() UnitID {

// Up initializes this datasource.
func (n *DataSource) Up(ctx context.Context) error {
safeToSingleIterate := true
// TODO(https://github.com/apache/beam/issues/23043) - Reenable single iteration or more fully rip this out.
safeToSingleIterate := false
switch n.Out.(type) {
case *Expand, *Multiplex:
// CoGBK Expands aren't safe, as they may re-iterate the GBK stream.
Expand Down

0 comments on commit b2a6f46

Please sign in to comment.