title: unsupportedOperationException Error converting string to DateTime using Joda time
body: <p>I am converting string to datetime field using joda.time.Datetime libraries but it throws unsupported exception 
  Here is main class code: </p>
  
  <pre><code>//create new var with input data without header
  var inputDataWithoutHeader: RDD[String] = dropHeader(inputFile)
  var inputDF1 = inputDataWithoutHeader.map(_.split(",")).map{p =&gt;
  val dateYMD: DateTime = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss").parseDateTime(p(8))
  testData(dateYMD)}.toDF().show()
  </code></pre>
  
  <p>p(8) is columnn with datatype datetime defined in class testData and CSV data for the column has value like 2013-02-17 00:00:00</p>
  
  <p>Here is testData Class:</p>
  
  <pre><code>case class testData(StartDate: DateTime) { }
  </code></pre>
  
  <p>Here is the Error I get :</p>
  
  <p>Exception in thread "main" </p>
  
  <pre><code>java.lang.UnsupportedOperationException: Schema for type org.joda.time.DateTime is not supported
      at org.apache.spark.sql.catalyst.ScalaReflection$class.schemaFor(ScalaReflection.scala:153)
      at org.apache.spark.sql.catalyst.ScalaReflection$.schemaFor(ScalaReflection.scala:29)
      at org.apache.spark.sql.catalyst.ScalaReflection$$anonfun$schemaFor$1.apply(ScalaReflection.scala:128)
      at org.apache.spark.sql.catalyst.ScalaReflection$$anonfun$schemaFor$1.apply(ScalaReflection.scala:126)
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      at scala.collection.immutable.List.foreach(List.scala:318)
      at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
      at scala.collection.AbstractTraversable.map(Traversable.scala:105)
      at org.apache.spark.sql.catalyst.ScalaReflection$class.schemaFor(ScalaReflection.scala:126)
      at org.apache.spark.sql.catalyst.ScalaReflection$.schemaFor(ScalaReflection.scala:29)
      at org.apache.spark.sql.catalyst.ScalaReflection$class.schemaFor(ScalaReflection.scala:64)
      at org.apache.spark.sql.catalyst.ScalaReflection$.schemaFor(ScalaReflection.scala:29)
      at org.apache.spark.sql.SQLContext.createDataFrame(SQLContext.scala:361)
      at org.apache.spark.sql.SQLImplicits.rddToDataFrameHolder(SQLImplicits.scala:47)
      at com.projs.poc.spark.ml.ProcessCSV$delayedInit$body.apply(ProcessCSV.scala:37)
  </code></pre>