I am using AvroIO from Apache Beam with Spark Runner. I have defined a avro record with field
{
"name" : "serviceDate",
"type" : [ "null", {
"type" : "int",
"logicalType" : "date"
} ],
"doc" : "date",
"default" : null
}
Reading this data fails with java.lang.ClassCastException: java.lang.Integer cannot be cast to org.joda.time.LocalDate
I am using avro 1.8.2