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

Not compile RapidsUDF when udf compiler is enabled #2523

Merged
merged 5 commits into from
Jun 2, 2021

Conversation

wjxiz1992
Copy link
Collaborator

@wjxiz1992 wjxiz1992 commented May 27, 2021

To close: #1712.
Originally, when UDF Compiler is enabled, it will always try to compile the bytecodes for any instance of a ScalaUDF.
This PR detects if a ScalaUDF implements the RapidsUDF interface. If yes, don't compile its bytecode because user has already provided a columnar evaluation method for the function.

Signed-off-by: Allen Xu wjxiz1992@gmail.com

Signed-off-by: Allen Xu <wjxiz1992@gmail.com>
@wjxiz1992 wjxiz1992 requested a review from jlowe May 27, 2021 09:39
Signed-off-by: Allen Xu <wjxiz1992@gmail.com>
@wjxiz1992 wjxiz1992 requested a review from abellina May 27, 2021 10:03
revans2
revans2 previously approved these changes May 27, 2021
@revans2
Copy link
Collaborator

revans2 commented May 27, 2021

build

@sameerz sameerz added the task Work required that improves the product but is not user facing label May 27, 2021
@wjxiz1992 wjxiz1992 changed the base branch from branch-21.06 to branch-21.08 June 2, 2021 01:28
@wjxiz1992 wjxiz1992 dismissed revans2’s stale review June 2, 2021 01:28

The base branch was changed.

Signed-off-by: Allen Xu <wjxiz1992@gmail.com>
@wjxiz1992 wjxiz1992 requested a review from jlowe June 2, 2021 15:20
Signed-off-by: Allen Xu <wjxiz1992@gmail.com>
Signed-off-by: Allen Xu <wjxiz1992@gmail.com>
@jlowe
Copy link
Member

jlowe commented Jun 2, 2021

build

@jlowe jlowe merged commit 3239eed into NVIDIA:branch-21.08 Jun 2, 2021
tgravescs pushed a commit that referenced this pull request Jun 9, 2021
* Not compile RapidsUDF when udf compiler is enabled

Signed-off-by: Allen Xu <wjxiz1992@gmail.com>

* add empty line back

Signed-off-by: Allen Xu <wjxiz1992@gmail.com>

* Use reflection for Java UDF

Signed-off-by: Allen Xu <wjxiz1992@gmail.com>

* resolve comments

Signed-off-by: Allen Xu <wjxiz1992@gmail.com>

* Code clean

Signed-off-by: Allen Xu <wjxiz1992@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Work required that improves the product but is not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Scala UDF compiler can decompile UDFs with RAPIDS implementation
6 participants