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

Fix udf-compiler scala2.13 internal return statements #11553

Open
wants to merge 5 commits into
base: branch-24.12
Choose a base branch
from

Conversation

abellina
Copy link
Collaborator

@abellina abellina commented Oct 1, 2024

Closes #11174

This is in draft to solicit comments from @seanprime7

Signed-off-by: Alessandro Bellina <abellina@nvidia.com>
@abellina abellina marked this pull request as ready for review October 9, 2024 14:03
@abellina
Copy link
Collaborator Author

abellina commented Oct 9, 2024

@seanprime7 I made the suggested change, please take another look when you get a chance.

@abellina
Copy link
Collaborator Author

abellina commented Oct 9, 2024

build

@@ -36,6 +36,7 @@ class OpcodeSuite extends AnyFunSuite {
val conf: SparkConf = new SparkConf()
.set("spark.sql.extensions", "com.nvidia.spark.udf.Plugin")
.set("spark.rapids.sql.udfCompiler.enabled", "true")
.set("spark.sql.ansi.enabled", "false")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why we need to disable ANSI here? I assume this is for Spark 4.0, but then I would expect there to be corresponding negative tests where we are testing that we do not replace UDFs because of ANSI expression semantics. Seems like we need a comment and/or pointer to a tracking issue here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct that is due to spark 4, let me file something at least with the failures I see with ansi enabled.

Copy link
Collaborator Author

@abellina abellina Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #11633 to address as a separate issue. One thing that is nice about this failure is that it is detected at plan time, and we won't cause a corruption.

@abellina
Copy link
Collaborator Author

build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opcode Suite fails for Scala 2.13.8+
4 participants