title: avro schema LocalDate mapping
body: <p>How to map avro schema to a LocalDate / LocaldateTime?
  The spec says we can use logicalType. But DOES NOT CARE TO SHOW AN EXAMPLE of how it maps to LocalDate in Java. Why is a good example not part of the spec? that is for the specwriters.
  Anyay
  e.g.</p>
  <pre><code>    {&quot;namespace&quot;: &quot;example.avro&quot;,
       &quot;type&quot;: &quot;record&quot;,
       &quot;name&quot;: &quot;User&quot;,
       &quot;fields&quot;: [
      {&quot;name&quot;: &quot;date&quot;, &quot;type&quot;: &quot;int&quot;, &quot;logicalType&quot;: &quot;date&quot;}
      ]
      }
  </code></pre>
  <p>This maps to  int and not to LocalDate e.g,</p>
  <p>How to map  in avro schema LocalDate?</p>
  <pre><code>    @org.apache.avro.specific.AvroGenerated   
      public class User extends org.apache.avro.specific.SpecificRecordBase implements      
  org.apache.avro.specific.SpecificRecord {
      private int date;// This should be LocalDate
      }
  </code></pre>