我有一个avro架构:
"fields" : [ {
"name" : "errortime",
"type": [ "null", {
"type": "long",
"logicalType": "timestamp-millis"
}]
创建java类,字段为joda DateTime errortime。
当我尝试序列化为avro格式时,我得到下一个错误:
Caused by: org.apache.avro.AvroRuntimeException: Unknown datum type org.joda.time.DateTime: 2018-05-02T12:32:27.563Z
如何避免这个问题?