title: TIMESTAMP not behaving as intended with parquet in hive
body: <p>I have <code>parquet</code> data which when read (<code>TIMESTAMP</code> column) using spark works perfectly fine. Below are the sample records:  </p>
  
  <pre><code>scala&gt; data.select($"BATCH_LOAD_DATE").limit(5).show()
  
  +-------------------+
  |    BATCH_LOAD_DATE|
  +-------------------+
  |2020-02-21 07:35:27|
  |2020-02-21 07:35:27|
  |2020-02-21 07:35:27|
  |2020-02-21 07:35:27|
  |2020-02-21 07:35:27|
  +-------------------+   
  </code></pre>
  
  <p>I checked the schema and it shows <code>TIMESTAMP</code> as the data type for one of the columns which is correct. So, no issue with schema either. However, when I am trying to read the same <code>TIMESTAMP</code> column via Hive, it throws below exception  </p>
  
  <pre><code>Error: java.io.IOException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassCastException: org.apache.hadoop.io.LongWritable cannot be cast to org.apache.hadoop.hive.serde2.io.TimestampWritableV2 (state=,code=0)   
  </code></pre>
  
  <p>I can see from <a href="https://issues.apache.org/jira/browse/HIVE-15079" rel="nofollow noreferrer">this</a> link that it is an open issue in Hive. Not sure whether it is resolved yet or not. Is there any workaround for this? Something which can be done while loading data or some transformation once loaded? </p>