Skip to content

superbear/hive-udf-in-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hive UDF in Go

Hive UDF (User-Defined Functions) in Go.

Requirements

How to build

There is a provided Makefile with all the build targets.

Build JAR

make build

This creates a hive-udf-in-go-1.0-SNAPSHOT-jar-with-dependencies.jar in the target/ directory.

Test

make test

Usage

-- register
hive> ADD JAR /path/to/hive-udf-in-go-1.0-SNAPSHOT-jar-with-dependencies.jar;
hive> CREATE TEMPORARY FUNCTION atoi AS 'hive.udf.GenericUDFAtoi';
hive> CREATE TEMPORARY FUNCTION upper AS 'hive.udf.GenericUDFUpper';

SELECT atoi(xxx) FROM xxx;

References