luocooong commented on issue #2298:
URL: https://github.com/apache/drill/issues/2298#issuecomment-903108793
@paul-rogers Well. I've confirmed that it's really old. Thanks for the tips.
Oddly, I may have used the old package `org.apache.drill.exec.store.json`
and the test class `TestJsonRecordReader`. But the error stack log show that
does not apply the new JSON loader?
```java
Caused by: java.time.format.DateTimeParseException: Text
'2019-09-30T20:47:43Z' could not be parsed at index 19
at
java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
at java.time.OffsetDateTime.parse(OffsetDateTime.java:402)
at
org.apache.drill.exec.vector.complex.fn.VectorOutput$MapVectorOutput.writeTimestamp(VectorOutput.java:354)
at
org.apache.drill.exec.vector.complex.fn.VectorOutput.innerRun(VectorOutput.java:113)
at
org.apache.drill.exec.vector.complex.fn.VectorOutput$MapVectorOutput.run(VectorOutput.java:302)
at
org.apache.drill.exec.vector.complex.fn.JsonReader.writeMapDataIfTyped(JsonReader.java:386)
at
org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:262)
at
org.apache.drill.exec.vector.complex.fn.JsonReader.writeDataSwitch(JsonReader.java:192)
at
org.apache.drill.exec.vector.complex.fn.JsonReader.writeDocument(JsonReader.java:178)
at
org.apache.drill.exec.store.easy.json.reader.BaseJsonReader.writeToVector(BaseJsonReader.java:99)
at
org.apache.drill.exec.store.easy.json.reader.BaseJsonReader.write(BaseJsonReader.java:70)
at
org.apache.drill.exec.store.mongo.MongoRecordReader.next(MongoRecordReader.java:203)
at
org.apache.drill.exec.physical.impl.ScanBatch.internalNext(ScanBatch.java:234)
at
org.apache.drill.exec.physical.impl.ScanBatch.next(ScanBatch.java:298)
... 18 common frames omitted
```
--
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]