jarohen commented on code in PR #40987:
URL: https://github.com/apache/arrow/pull/40987#discussion_r1552036016
##########
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:
Ah, sorry @pitrou, I didn't see your message til I'd posted mine :facepalm:
will take a look
--
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]