Hello,
 
I have a problem with a timestamp field and the avro schema. the field is defined as:
 
    {"name": "AAN", "type": [{"type": "long","logicalType": "timestamp-millis"},"null"]},
 
 
The Avro specs say:
 
"A timestamp-millis logical type annotates an Avro long, where the long stores the number of milliseconds from the unix epoch, 1 January 1970 00:00:00.000 UTC. "
 
 
Now when a value of type long is used, I get following exception:
 
java.lang.ClassCastException: java.lang.Long cannot be cast to org.joda.time.DateTime
 
Can anybody help?
 
Rgds,
 
Uwe

Reply via email to