jarohen commented on code in PR #40987:
URL: https://github.com/apache/arrow/pull/40987#discussion_r1551287216
##########
java/vector/src/test/java/org/apache/arrow/vector/ipc/TestJSONFile.java:
##########
@@ -429,6 +429,27 @@ public void testWriteReadNullJSON() throws IOException {
}
}
+ @Test
+ public void testWriteReadExtensionData() throws IOException {
+ // write
+ try (VectorSchemaRoot root = writeUuidData(allocator)) {
+ File file = new File("target/mytest_extension.json");
+ writeJSON(file, root, null);
+ }
+
+ // read
+ try (BufferAllocator readerAllocator =
allocator.newChildAllocator("reader", 0, Integer.MAX_VALUE);
+ JsonFileReader reader = new JsonFileReader(new
File("target/mytest_extension.json"), readerAllocator)) {
+ Schema schema = reader.start();
+ LOGGER.debug("reading schema: " + schema);
Review Comment:
Quite possibly not, but I ~copy-pasted~ took inspiration from the other
tests in the file - happy to remove?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]