Temporarily reduce coverage threshold to .80
1 file changed
tree: 52d7b809bccc8d4f91f33b4b6039c3402fbf820c
  1. src/
  2. .gitignore
  3. .travis.yml
  4. LICENSE.md
  5. pom.xml
  6. README.md
README.md

Sketch Adaptors for Hive Build Status Coverage Status

Depends on sketches-core.

To use Hive UDFs, you should do the following:

  1. Register the JAR file with Hive:
  • hive> add jar sketches-hive-0.1.0-incDeps.jar
  1. Register UDF functions with Hive:
  • hive> create temporary function estimate as 'com.yahoo.sketches.hive.theta.EstimateSketchUDF';
  • hive> create temporary function dataToSketch as 'com.yahoo.sketches.hive.theta.DataToSketchUDAF';
  1. Run a query:
  • hive> select estimate(dataToSketch(myCol, 16384, 1.0)) from myTable where color = blue;