Re: UDF timestamp columns

2020-01-28 Thread Nicolas Paris
Thanks Shown Finally I got it working with java.sql.Timestamp Indeed the version of hive is important. However I am using hive UDF with apache spark. Paradoxally, spark-sql only handle hive udf. It does not handle spark udf (they only apply in spark - not spark-sql) On Wed, Jan 22, 2020 at 01:34:

Re: UDF timestamp columns

2020-01-22 Thread Shawn Weeks
Depending on what version of Hive you are looking for TimestampWritable or one of it's related classes. Thanks Shawn On 1/22/20, 6:51 AM, "Nicolas Paris" wrote: Hi I cannot find the way to implement hive UDF dealing with timestamp type. I tried both java.sql.Timestamp and imp

UDF timestamp columns

2020-01-22 Thread Nicolas Paris
Hi I cannot find the way to implement hive UDF dealing with timestamp type. I tried both java.sql.Timestamp and import org.apache.hadoop.hive.common.type.Timestamp without success Is there any guidance ? thanks -- nicolas