File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
bigquery/storage/managedwriter Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -362,14 +362,14 @@ func (co *connection) lockingAppend(pw *pendingWrite) error {
362
362
var ch chan * pendingWrite
363
363
var err error
364
364
365
- // We still need to reconnect if we need to signal a new schema for explicit streams .
366
- // Rather than adding more state to the connection , we just look at the request as we
367
- // do not allow multiplexing to include explicit streams .
365
+ // Handle promotion of per-request schema to default schema in the case of updates .
366
+ // Additionally , we check multiplex status as schema changes for explicit streams
367
+ // require reconnect, whereas multiplex does not .
368
368
forceReconnect := false
369
- if ! canMultiplex (pw .writeStreamID ) {
370
- if pw .writer != nil && pw .descVersion != nil && pw .descVersion .isNewer (pw .writer .curDescVersion ) {
369
+ if pw .writer != nil && pw .descVersion != nil && pw .descVersion .isNewer (pw .writer .curDescVersion ) {
370
+ pw .writer .curDescVersion = pw .descVersion
371
+ if ! canMultiplex (pw .writeStreamID ) {
371
372
forceReconnect = true
372
- pw .writer .curDescVersion = pw .descVersion
373
373
}
374
374
}
375
375
You canβt perform that action at this time.
0 commit comments