pitrou commented on code in PR #40987:
URL: https://github.com/apache/arrow/pull/40987#discussion_r1551935477
##########
java/vector/src/main/java/org/apache/arrow/vector/ipc/JsonFileReader.java:
##########
@@ -98,10 +100,14 @@ public class JsonFileReader implements AutoCloseable,
DictionaryProvider {
public JsonFileReader(File inputFile, BufferAllocator allocator) throws
JsonParseException, IOException {
super();
this.allocator = allocator;
- MappingJsonFactory jsonFactory = new MappingJsonFactory(new ObjectMapper()
- //ignore case for enums
- .configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, true)
- );
+ //ignore case for enums
+ ObjectMapper mapper = new
ObjectMapper().configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, true);
+ mapper.registerSubtypes(
Review Comment:
I'm not sure what this is for. In the JSON integration format, extension
types are typically serialized as their respective storage type with additional
metadata:
https://arrow.apache.org/docs/format/Columnar.html#extension-types
--
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]