Today you have to do an explicit conversion. I'd really like to open up a public UDT interface as part of Spark Datasets (SPARK-9999) that would allow you to register custom classes with conversions, but this won't happen till Spark 1.7 likely.
On Mon, Nov 2, 2015 at 8:40 PM, Bryan Jeffrey <bryan.jeff...@gmail.com> wrote: > All, > > I have an object Joda DateTime fields. I would prefer to continue to use > the DateTime in my application. When I am inserting into Hive I need to > cast to a Timestamp field (DateTime is not supported). I added an implicit > conversion from DateTime to Timestamp - but it does not appear to be called > when inserting into the temp table. I am seeing the following error: > > java.lang.UnsupportedOperationException: Schema for type > org.joda.time.DateTime is not supported > > Is there some magic I need to use to get the implicit conversion when > inserting into Hive, or am I required to do an explicit conversion prior to > insertion? > > Regards, > > Bryan Jeffrey >