congbobo184 edited a comment on issue #5112: How to Date type -> AVRO -> Presto
   @KannarFr First, AvroSchema only support org.joda.time. The second, you 
should use Avro logicalType like 
       private static class SchemaLogicalType{
           @org.apache.avro.reflect.AvroSchema("{\n" +
                   "  \"type\": \"bytes\",\n" +
                   "  \"logicalType\": \"decimal\",\n" +
                   "  \"precision\": 4,\n" +
                   "  \"scale\": 2\n" +
           BigDecimal decimal;
           LocalDate date;
           DateTime timestampMillis;
           LocalTime timeMillis;
           long timestampMicros;
           long timeMicros;
   in your class

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.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to