luocooong commented on issue #2298: URL: https://github.com/apache/drill/issues/2298#issuecomment-903191804
@paul-rogers Thanks for the information. But the old JSON loader use the fixed date formatter : `yyyy-MM-dd'T'HH:mm:ss.SSSXX`, It required a timezone (or offset). And then, the OffsetDateTime class does not accept a date string without timezone. https://github.com/apache/drill/blob/39b565f112122734c080324fdcbef518ced16507/exec/java-exec/src/main/java/org/apache/drill/exec/vector/complex/fn/VectorOutput.java#L353-L354 So, the old JSON loader cannot parse the `2019-09-30T20:47:43Z`(with this fixed formatter). Interestingly, the `2019-09-30T20:47:43Z` is equals to the `2019-09-30T20:47:43+0000` (`Z` is the 0 timezone), but the OffsetDateTime don't even know it. In this case, Do we need to update the new JSON loader? -- 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]
