From ac98d255ade83e7c902a32aba0c131334291a034 Mon Sep 17 00:00:00 2001 From: Mike Wasson <3992422+MikeWasson@users.noreply.github.com> Date: Wed, 30 Dec 2020 21:57:11 +0000 Subject: [PATCH] Remove allowUnknownFields parameter --- .../com/example/bigquerystorage/WriteCommittedStream.java | 4 ++-- .../java/com/example/bigquerystorage/WritePendingStream.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/snippets/src/main/java/com/example/bigquerystorage/WriteCommittedStream.java b/samples/snippets/src/main/java/com/example/bigquerystorage/WriteCommittedStream.java index 0ecd78f22e..1fc6b0f45b 100644 --- a/samples/snippets/src/main/java/com/example/bigquerystorage/WriteCommittedStream.java +++ b/samples/snippets/src/main/java/com/example/bigquerystorage/WriteCommittedStream.java @@ -69,7 +69,7 @@ public static void writeCommittedStream(String projectId, String datasetName, St JSONArray jsonArr = new JSONArray(); jsonArr.put(record); - ApiFuture future = writer.append(jsonArr, i, false); + ApiFuture future = writer.append(jsonArr, i); AppendRowsResponse response = future.get(); } @@ -106,7 +106,7 @@ public static void writeToDefaultStream(String projectId, String datasetName, St JSONArray jsonArr = new JSONArray(); jsonArr.put(record); - ApiFuture future = writer.append(jsonArr, false); + ApiFuture future = writer.append(jsonArr); AppendRowsResponse response = future.get(); } } catch (Exception e) { diff --git a/samples/snippets/src/main/java/com/example/bigquerystorage/WritePendingStream.java b/samples/snippets/src/main/java/com/example/bigquerystorage/WritePendingStream.java index 5d357a3e2c..5cc504962a 100644 --- a/samples/snippets/src/main/java/com/example/bigquerystorage/WritePendingStream.java +++ b/samples/snippets/src/main/java/com/example/bigquerystorage/WritePendingStream.java @@ -57,7 +57,7 @@ public static void writePendingStream(String projectId, String datasetName, Stri JSONArray jsonArr = new JSONArray(); jsonArr.put(record); - ApiFuture future = writer.append(jsonArr, false); + ApiFuture future = writer.append(jsonArr); AppendRowsResponse response = future.get(); } FinalizeWriteStreamResponse finalizeResponse =