Skip to content

Commit 1893b3f

Browse files
fix: add a e2e json test (#2062)
* fix: add a e2e json test * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1741166 commit 1893b3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ public void testJsonStreamWriterWithDefaultSchema()
538538
.build(),
539539
com.google.cloud.bigquery.Field.newBuilder(
540540
"test_timestamp", StandardSQLTypeName.TIMESTAMP)
541+
.build(),
542+
com.google.cloud.bigquery.Field.newBuilder(
543+
"test_json", StandardSQLTypeName.JSON)
541544
.build())))
542545
.build();
543546

@@ -573,6 +576,7 @@ public void testJsonStreamWriterWithDefaultSchema()
573576
ByteString.copyFromUtf8("b").toByteArray()
574577
}));
575578
row1.put("test_timestamp", "2022-02-06 07:24:47.84");
579+
row1.put("test_json", "{}");
576580
JSONArray jsonArr1 = new JSONArray(new JSONObject[] {row1});
577581

578582
ApiFuture<AppendRowsResponse> response1 = jsonStreamWriter.append(jsonArr1, -1);

0 commit comments

Comments
 (0)