title: how to create date type column in parquet file with parquet-avro
body: <p>I'm using Java(1.8) based application to create parquet file with using libraries 
   org.apache.avro.Schema and org.apache.parquet.hadoop.ParquetWriter etc..</p>
  
  <p>This is my sample code  </p>
  
  <p>final String schemaLocation=ParquerWriterImpl.class.getClassLoader().getResource("parquet-schema/" + ParquetTypes.RISKINFO.getFileType()).getPath();</p>
  
  <pre><code>        Schema avroSchema = new Schema.Parser().parse(new File(schemaLocation));
  
          final MessageType parquetSchema = new AvroSchemaConverter().convert(avroSchema);
          final WriteSupport&lt;Mapper&gt; writeSupport = new AvroWriteSupport(parquetSchema, avroSchema);
          final String parquetPath = PropertyLoader.getPropertyLoader().getProperty(Constants.PROPERTY_MACHINE_FOLDERPATH) + "/" +
                  parquetFileName;
          final Path path = new Path(parquetPath);
          ParquetWriter&lt;GenericRecord&gt; parquetWriter = new ParquetWriter(path, writeSupport, CompressionCodecName.SNAPPY, BLOCK_SIZE, 1024);
          final GenericRecord record = new GenericData.Record(avroSchema);
          parquetWriter.write(function.apply(new RiskInfoGen(record)));
          parquetWriter.close();  
  </code></pre>
  
  <p>to create this file I'm using Avro schema like below.</p>
  
  <pre><code>},
    {
       "name": "additional",
      "type": {"type": "map", "values": "string","default" : null}
  
    },
  
    {
       "name": "mydate",
       "type": {"type": "int", "logicalType" : "date"}
  
    }
  </code></pre>
  
  <p>in POJO class I'm mapping "mydate" to Java int type.</p>
  
  <p>Question 1
  Although I'm getting parquet file here, after opening that file with spark, "mydate" column showing as int type not expected date type.</p>
  
  <p>please let me know how to make this "mydate" as date column in parquet schema.</p>
  
  <p>e.g mydate date (nullable true)</p>