Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RAPIDS accelerated Java UDFs #1714

Merged
merged 2 commits into from
Feb 12, 2021

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Feb 11, 2021

Fixes #1635.

This extends GpuScalaUDF to recognize RAPIDS accelerated Spark Java UDFs that are wrapped in a lambda function by Apache Spark by UDFRegistration. This allows users to provide RAPIDS accelerated implementation of their Spark Java UDFs for use in Spark via spark.udf.register and PySpark via spark.udf.registerJavaFunction.

A working example of a RAPIDS accelerated Spark Scala UDF is also provided, which required adding the Scala version to the udf-examples jar (and everywhere it was referenced). A unit test was added to exercise it. It was not implemented as a Python test as was done for the Hive UDFs because PySpark does not support registering Scala UDFs (it uses the Java UDF interface instead).

The RAPIDS accelerated UDF documentation has also been updated to reflect the new functionality.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added the SQL part of the SQL/Dataframe plugin label Feb 11, 2021
@jlowe jlowe self-assigned this Feb 11, 2021
abellina
abellina previously approved these changes Feb 11, 2021
@abellina
Copy link
Collaborator

build

@jlowe
Copy link
Member Author

jlowe commented Feb 12, 2021

build

@jlowe jlowe merged commit 118ea6a into NVIDIA:branch-0.4 Feb 12, 2021
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
* Add support for RAPIDS accelerated Java UDFs

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Add lambda classname check and comments
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
* Add support for RAPIDS accelerated Java UDFs

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Add lambda classname check and comments
@jlowe jlowe deleted the java-rapids-udf branch September 10, 2021 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SQL part of the SQL/Dataframe plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] RAPIDS accelerated Java UDF
3 participants