Skip to content

A JavaUDF program to convert various date formats to YYYY-MM-DD

Notifications You must be signed in to change notification settings

srsandy/Hive-javaUDF-ConvertDateFormat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hive-javaUDF-ConvertDateFormat

Open Hive Shell

Step 1

hive> ADD JAR <path-of-the-JAR-file>

Step 2

hive> CREATE TEMPORARY FUNCTION DateConverter  AS 'com.ibm.logic.HiveUDF';

Testing

hive> select DateConverter("160627","yyMMdd");

=> 2016-06-27

hive> select DateConverter('062716','MMddyy');

=> 2016-06-27

About

A JavaUDF program to convert various date formats to YYYY-MM-DD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages