You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BufferMismatchedRows.java
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ class BufferMismatchedRows<DestinationT extends @NonNull Object, ElementT>
Copy file name to clipboardExpand all lines: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWriteUnshardedRecords.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -581,6 +581,11 @@ long flush(
581
581
582
582
pendingMessages.clear();
583
583
584
+
if (rowsToProcess.getProtoRows().getSerializedRowsCount() == 0) {
585
+
// All rows either failed or were buffered with schema mismatches.
586
+
return0;
587
+
}
588
+
584
589
// Handle the case where the request is too large.
585
590
if (rowsToProcess.getProtoRows().getSerializedSize() >= maxRequestSize) {
586
591
if (rowsToProcess.getProtoRows().getSerializedRowsCount() > 1) {
Copy file name to clipboardExpand all lines: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWritesShardedRecords.java
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,7 @@ public class StorageApiWritesShardedRecords<DestinationT extends @NonNull Object
Copy file name to clipboardExpand all lines: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/UpgradeTableSchema.java
0 commit comments