Skip to content

mdasilva/drill-md5-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MD5 Hash Function for Apache Drill

This project contains a simple example for a custom function for Apache Drill.

This functions is a mask one that allows the following queries to be executed:

SELECT MD5(email) customer_guid, email FROM dfs.`example.csv`;

How to Compile Install

Clone and compile.


git clone git@github.com:mdasilva/drill-md5-function.git

cd drill-md5-function

mvn package

Now download and unpack Apache Drill.

wget http://getdrill.org/drill/download/apache-drill-1.9.0.tar.gz
tar xvf apache-drill-1.9.0.tar.gz

Copy the jar files from your functions into the 3rdparty directory in the Drill distro

cp drill-md5-function/target/*.jar apache-drill-1.9.0/jars/3rdparty

Now run drill and test the results

$ cd apache-drill-1.9.0/
$ bin/drill-embedded
0: jdbc:drill:zk=local>
SELECT MD5(email) customer_guid, email FROM dfs.`example.csv`;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages