title: Parquet String to timestamp conversion in hive
body: <p>I have parquet files generated by some code. I created a DDL for that data, added table in hive and pointed to those parquet files in hdfs. When I try to query the table, all fields look perfect. But, for timestamp fields, hive is giving an exception.</p>
  
  <pre><code>HiveException: java.lang.ClassCastException: org.apache.hadoop.io.Text cannot be cast to org.apache.hadoop.hive.serde2.io.TimestampWritable
  </code></pre>
  
  <p>Actually, timestamp fields are stored as strings in parquet, but my hive table fields are of type timestamp. I think this causes the issue, but what is right way to do this?</p>