Skip to content

Commit f1a301a

Browse files
Remove allowUnknownFields parameter
1 parent e7fdf57 commit f1a301a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/snippets/src/main/java/com/example/bigquerystorage/WriteCommittedStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void writeCommittedStream(String projectId, String datasetName, St
6969
JSONArray jsonArr = new JSONArray();
7070
jsonArr.put(record);
7171

72-
ApiFuture<AppendRowsResponse> future = writer.append(jsonArr, i, false);
72+
ApiFuture<AppendRowsResponse> future = writer.append(jsonArr, i);
7373
AppendRowsResponse response = future.get();
7474
}
7575

@@ -106,7 +106,7 @@ public static void writeToDefaultStream(String projectId, String datasetName, St
106106
JSONArray jsonArr = new JSONArray();
107107
jsonArr.put(record);
108108

109-
ApiFuture<AppendRowsResponse> future = writer.append(jsonArr, false);
109+
ApiFuture<AppendRowsResponse> future = writer.append(jsonArr);
110110
AppendRowsResponse response = future.get();
111111
}
112112
} catch (Exception e) {

samples/snippets/src/main/java/com/example/bigquerystorage/WritePendingStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static void writePendingStream(String projectId, String datasetName, Stri
5757
JSONArray jsonArr = new JSONArray();
5858
jsonArr.put(record);
5959

60-
ApiFuture<AppendRowsResponse> future = writer.append(jsonArr, false);
60+
ApiFuture<AppendRowsResponse> future = writer.append(jsonArr);
6161
AppendRowsResponse response = future.get();
6262
}
6363
FinalizeWriteStreamResponse finalizeResponse =

0 commit comments

Comments
 (0)