Skip to content

samkenhuang/hx-hive-udfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HuangXin Hive UDFs

About

HuangXin Hive UDFs is a collection of user defined functions for Hive.

Quickstart

$ git clone https://github.com/samkenhuang/hive-udfs.git
$ cd hive-udfs
$ mvn clean package

How to use

hive> add jar hdfs://master110.weiboyi.com:8020/user/bi/libs/huangxin-hive-1.0-SNAPSHOT-shaded.jar;

support functions

JSONPath

hive> CREATE temporary function JSONPath as 'com.huangxin.hive.JSONPath';
hive> select JSONPath("[{\"name\":\"john\",\"gender\":\"male\"},{\"name\":\"ben\"}]", "$[*].name");

See the details at github:json-path/JsonPath

License

Apache License Version 2.0

About

HuangXin's Hive UDFs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages