jeffreyoldham opened a new issue, #22766:
URL: https://github.com/apache/beam/issues/22766

   blob/master/sdks/go/pkg/beam/core/runtime/exec/translate.go:531 contains a 
double type assertion but only the latter is checked for correctness.  If the 
former fails, the pipeline incorrectly panics.  The revised code should be:
   
   ```go
   if pc, ok := ma.Out.(*PCollection); ok {
                                                if eo, ok := 
pc.Out.(*ExtractOutput); ok {
                                                        // Strip PCollections 
from between MergeAccumulators and ExtractOutputs
                                                        // as it's a synthetic 
PCollection.
                                                        b.units = 
b.units[:len(b.units)-1]
                                                        ma.Out = eo
                                                }
                                        }
   ```
   


-- 
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]

Reply via email to