title: java.util.Date is not supported
body: <p>I want to write <code>RDD</code> to <code>MYSQL</code>, which <code>RDD</code> contains <code>java.util.Date</code> type.</p>
  
  <pre><code>rdd.map(f=&gt; FeatureData(
             f.get("name").toString, 
             f.get("value").toString.toDouble, 
             f.get("time").asInstanceOf[Date],
             f.get("period").toString))
      .toDF()
  </code></pre>
  
  <p>In this <code>RDD</code> the key of <code>time</code>'s value type is also <code>java.util.Date</code> and it just get the error of 
  <code>[See nested exception: java.lang.UnsupportedOperationException: Schema for type java.util.Date is not supported</code></p>