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

Move Support for RaiseError to a Shim Excluding Spark 4.0.0 [databricks] #10970

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

razajafri
Copy link
Collaborator

@razajafri razajafri commented Jun 4, 2024

This PR moves the support for RaiseError to a shim because Spark 4.0.0 has changed the way they throw exceptions here

The feature to add support for it to Spark 4.0 is tracked by #10969 issue and #10107

contributes to #10969
contributes to #10107

@razajafri
Copy link
Collaborator Author

build

@mythrocks
Copy link
Collaborator

mythrocks commented Jun 4, 2024

The change here is easy enough to understand. But the description in neither this PR nor #10969 links to the change in Apache Spark 4.0 that breaks compatibility.

Would you mind adding a link to the change, so that the reviewer doesn't have to hunt for the breakage?

Edit: Is the following issue the relevant one?

  1. [Audit][SPARK-44838][SQL] raise_error improvement  #10107 (Audit issue describing how Spark 4.0 changed raise_error's signature to use two arguments.)
  2. This corresponds to the changed signature in Apache Spark 4.0: SPARK-44838.

@sameerz sameerz added the Spark 4.0+ Spark 4.0+ issues label Jun 4, 2024
@razajafri
Copy link
Collaborator Author

razajafri commented Jun 4, 2024

Thanks for pointing that out @mythrocks and linking the issues here. I have updated the description.

Copy link
Collaborator

@mythrocks mythrocks left a comment

Choose a reason for hiding this comment

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

LGTM!

@razajafri razajafri merged commit 3111e2b into NVIDIA:branch-24.08 Jun 4, 2024
44 checks passed
SurajAralihalli pushed a commit to SurajAralihalli/spark-rapids that referenced this pull request Jul 12, 2024
…icks] (NVIDIA#10970)

* Incomplete impl of RaiseError for 400

* Removed RaiseError from 400

* Signing off

Signed-off-by: Raza Jafri <[email protected]>

---------

Signed-off-by: Raza Jafri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spark 4.0+ Spark 4.0+ issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants