Backports of Hive UDFs

Backports of recent Hive UDF functions to Hive 0.13.0

License

License

GroupId

GroupId

io.github.myui
ArtifactId

ArtifactId

hive-udf-backports
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Backports of Hive UDFs
Backports of recent Hive UDF functions to Hive 0.13.0
Project URL

Project URL

https://github.com/myui/hive-udf-backports
Source Code Management

Source Code Management

https://github.com/myui/hive-udf-backports.git

Download hive-udf-backports

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.myui/hive-udf-backports/ -->
<dependency>
    <groupId>io.github.myui</groupId>
    <artifactId>hive-udf-backports</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.myui/hive-udf-backports/
implementation 'io.github.myui:hive-udf-backports:0.0.2'
// https://jarcasting.com/artifacts/io.github.myui/hive-udf-backports/
implementation ("io.github.myui:hive-udf-backports:0.0.2")
'io.github.myui:hive-udf-backports:jar:0.0.2'
<dependency org="io.github.myui" name="hive-udf-backports" rev="0.0.2">
  <artifact name="hive-udf-backports" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.myui', module='hive-udf-backports', version='0.0.2')
)
libraryDependencies += "io.github.myui" % "hive-udf-backports" % "0.0.2"
[io.github.myui/hive-udf-backports "0.0.2"]

Dependencies

provided (2)

Group / Artifact Type Version
org.apache.hadoop : hadoop-common jar 2.4.0
org.apache.hive : hive-exec jar 0.13.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Version License Hive

Backports of Hive 2.2.0 UDF functions to Hive 0.13.0.

Find the list of backported functions in this DDL.

Usage

-- build jars
$ bin/build.sh

-- run Hive cli session
$ hive
-- deploy jar
add jar target/hive-udf-backports-x.y.z.jar;

-- load functions
source resources/create-functions.hive;

Maven repository

<dependency>
    <groupId>io.github.myui</groupId>
    <artifactId>hive-udf-backports</artifactId>
    <version>0.0.2</version>
</dependency>

List of Functions

-- since v1.1.0
greatest
least
add_months
last_day
initcap

-- since v1.2.0
factorial
cbrt
shiftleft
shiftright
shiftrightunsigned
current_date
current_timestamp
next_day
trunc
months_between
date_format
levenshtein
soundex

-- since v1.3.0
quarter
chr
replace
substring_index
md5
sha1
crc32
sha2
aes_encrypt
aes_decrypt

-- since v2.1.0
mask
mask_first_n
mask_last_n
mask_show_first_n
mask_show_last_n
mask_hash

-- since v2.2.0
nullif
character_length
regr_avgx
regr_avgy
regr_count
regr_intercept
regr_r2
regr_slope
regr_sxx
regr_sxy
regr_syy

Versions

Version
0.0.2
0.0.1