Skip to content

Commit

Permalink
Fix schema update test and remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tracyz-g committed May 15, 2024
1 parent b534726 commit 67f62c1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1369,11 +1369,9 @@ public void testJsonStreamWriterWithNestedFlexibleColumnName()
LOG.info("Sending one message");
JSONObject row1 = new JSONObject();
row1.put("test-str列", "aaa");
// JSONArray jsonArr = new JSONArray();
JSONObject record1 = new JSONObject();
record1.put("nested-str列", "nested-str1");
record1.put("nested-int列", 10);
// jsonArr.put(record);
row1.put("test-record列", new JSONArray(new JSONObject[] {record1}));
JSONArray jsonArr1 = new JSONArray(new JSONObject[] {row1});

Expand Down Expand Up @@ -1444,7 +1442,7 @@ public void testJsonStreamWriterSchemaUpdateWithFlexibleColumnName()
WriteStream.newBuilder().setType(WriteStream.Type.COMMITTED).build())
.build());
try (JsonStreamWriter jsonStreamWriter =
JsonStreamWriter.newBuilder(writeStream.getName(), writeStream.getTableSchema()).build()) {
JsonStreamWriter.newBuilder(writeStream.getName(), client).build()) {
// write the 1st row
JSONObject foo = new JSONObject();
foo.put("col1-列", "aaa");
Expand Down

0 comments on commit 67f62c1

Please sign in to comment.