Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 791 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 791 Bytes

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