Skip to content

Commit

Permalink
fix: add a e2e json test (#2062)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
yirutang and gcf-owl-bot[bot] authored Jan 3, 2024
1 parent 1741166 commit 1893b3f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ public void testJsonStreamWriterWithDefaultSchema()
.build(),
com.google.cloud.bigquery.Field.newBuilder(
"test_timestamp", StandardSQLTypeName.TIMESTAMP)
.build(),
com.google.cloud.bigquery.Field.newBuilder(
"test_json", StandardSQLTypeName.JSON)
.build())))
.build();

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

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

0 comments on commit 1893b3f

Please sign in to comment.