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

RAPIDS accelerated Spark Scala UDF support #1636

Merged
merged 1 commit into from
Feb 1, 2021
Merged

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Jan 29, 2021

Closes #1594.

This implements a GPU version of ScalaUDF which is used to track Spark Scala UDFs. Note that this class is also used for Java UDFs which are NOT supported by this change due to the obscuring of the user's class by a lambda wrapper for that case. Adding support for Spark Java UDFs is tracked by #1635.

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 feature request New feature or request SQL part of the SQL/Dataframe plugin labels Jan 29, 2021
@jlowe jlowe self-assigned this Jan 29, 2021
@jlowe
Copy link
Member Author

jlowe commented Jan 29, 2021

build

integration_tests/pom.xml Show resolved Hide resolved
@jlowe jlowe merged commit d6be108 into NVIDIA:branch-0.4 Feb 1, 2021
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
Signed-off-by: Jason Lowe <jlowe@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe deleted the scala-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
feature request New feature or request SQL part of the SQL/Dataframe plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] RAPIDS accelerated ScalaUDF
3 participants