Skip to content

Cuebiq/presto-hyperloglog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

presto-hyperloglog

Algebird's HyperLogLog support for Facebook Presto (prestodb.io).

Functions

There are two types of functions, aggregation and scalar.

Aggregation

merge(<hll: HLL>) -> HLL

Scalar

create_hll(<element:VARCHAR>, <bits: BIGINT>) -> HLL

cardinality(<hll: HLL>) -> BIGINT

Building

Running mvn clean package will generate a jar file as well as a zip file containing this plugin along with all of its dependencies.

Deployment on AWS EMR

cd /usr/lib/presto/plugin
curl -sLO https://github.com/robotblake/presto-hyperloglog/releases/download/$PRESTO_VERSION/presto-hyperloglog-$PRESTO_VERSION.zip
unzip presto-hyperloglog-$PRESTO_VERSION.zip
rm presto-hyperloglog-$PRESTO_VERSION.zip

About

Algebird's HyperLogLog for Presto DB.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%