swoop-inc/spark-alchemy

Python or Java support?

Closed this issue · 3 comments

Hello,

I was wondering if the HyperLogLog functions can be used in Java or Python (through Pyspark). I would assume so for Java. If there is support, I was wondering if examples can be posted on the Wiki.

Thank you!

@cozos that's right and naive DSL support in other languages can be built by wrapping functions.expr(<SparkSQL expression>).

@linbrian native DSL support for other languages requires a bit more work but there are lots of examples in Spark for how to do it. PRs welcome. :)

Here is how to register the Spark native functions for HLL from Python: #9 (comment)

Java can use the Scala registration code directly.