hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nagarjuna Vissarapu <nagarjuna.v...@gmail.com>
Subject Unable to retrieve date
Date Thu, 29 Jan 2015 09:42:29 GMT
Hi All,

I wrote hive UDF to convert

07/Dec/2014:23:59:04 to  07-Dec-2014 23:59:04

I attached UDF. PFA ...

I added jar to hive and created temporary function


*stringTotimestampQuery: select stringTotimestamp(date) from rm_get limit
1;*
*Result: *
[image: Inline image 1]

*Query: select to_date(stringTotimestamp(date)) from rm_get limit 1;*
*Result: Null*

What may be the issue?
-- 
With Thanks & Regards
Nagarjuna Vissarapu
9052179339

Mime
View raw message