[SPARK-4985][SQL Parquet] Fix 'Unsupported datatype DateType, cannot write to consumer'