davidradl commented on code in PR #26473: URL: https://github.com/apache/flink/pull/26473#discussion_r2050457610
########## flink-formats/flink-json/src/test/java/org/apache/flink/formats/json/JsonRowDataSerDeSchemaTest.java: ########## @@ -224,6 +227,55 @@ void testSerDe() throws Exception { assertThat(serializedJson).containsExactly(actualBytes); } + @Test + public void testJsonArrayToMultiRecords() throws Exception { + DataType dataType = ROW(FIELD("f1", INT()), FIELD("f2", BOOLEAN()), FIELD("f3", STRING())); + RowType rowType = (RowType) dataType.getLogicalType(); + + ObjectMapper objectMapper = new ObjectMapper(); + + ObjectNode element1 = objectMapper.createObjectNode(); + element1.put("f1", 1); + element1.put("f2", true); + element1.put("f3", "str"); + + ObjectNode element2 = objectMapper.createObjectNode(); + element2.put("f1", 10); + element2.put("f2", false); + element2.put("f3", "newStr"); + + ArrayNode arrayNode = objectMapper.createArrayNode(); Review Comment: can we test arrays of arrays of arrays and arrays of objects of arrays -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org