title: Schema for type TypeTag[java.sql.Timestamp] is not supported when creating Spark Dataset
body: <p>I have the following code which tries to create DataFrame from Seq[T]</p>
  <pre><code>case class CaseConvert[T: TypeTag](a: T)
  
  def createDf[T: TypeTag](data: Seq[T]): DataFrame = {
     spark.createDataFrame(data.map(CaseConvert[T])
  }
  </code></pre>
  <p>When above createDf method executed by passing type say Seq[java.sql.Timestamp] it fails showing the following error</p>
  <blockquote>
  <p>UnsupportedOperaionException: Schema for type TypeTag[java.sql.Timestamp] is not supported</p>
  </blockquote>
  <p>I think I have to create encoder for CaseConvert class but not sure how to do it using complex generics of Scala. I am new to Spark and Scala.</p>