Skip to content

[SPARK-43250][SQL] Replace the error class _LEGACY_ERROR_TEMP_2014 with an internal error#40951

Closed
amousavigourabi wants to merge 8 commits intoapache:masterfrom
amousavigourabi:add-new-function-internal-error
Closed

[SPARK-43250][SQL] Replace the error class _LEGACY_ERROR_TEMP_2014 with an internal error#40951
amousavigourabi wants to merge 8 commits intoapache:masterfrom
amousavigourabi:add-new-function-internal-error

Conversation

@amousavigourabi
Copy link
Copy Markdown
Contributor

@amousavigourabi amousavigourabi commented Apr 25, 2023

What changes were proposed in this pull request?

In this PR I propose to replace the legacy error class _LEGACY_ERROR_TEMP_2014, added as an IllegalArgumentException to avoid non-exhaustive case-matching in #22014, with an internal error as it is not triggered by the user space.

Why are the changes needed?

As the error is not triggered by the user space, the legacy error class can be replaced by an internal error.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

No new tests were added and no tests needed changing because of the nature of the updated error class.

Replaces the error class _LEGACY_ERROR_TEMP_2014 with an internal error and updates the error message.
Line >100 chars got split up
@amousavigourabi amousavigourabi changed the title [SPARK-43250] Replace the error class _LEGACY_ERROR_TEMP_2014 with an internal error [SPARK-43250][SQL] Replace the error class _LEGACY_ERROR_TEMP_2014 with an internal error Apr 27, 2023
@amousavigourabi
Copy link
Copy Markdown
Contributor Author

@MaxGekk could you help review this?

Copy link
Copy Markdown
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

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

Could you point out the PR #22014 in your PR description, please.

@amousavigourabi amousavigourabi requested a review from MaxGekk May 1, 2023 19:32
Copy link
Copy Markdown
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

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

Waiting for Ci.

@MaxGekk
Copy link
Copy Markdown
Member

MaxGekk commented May 3, 2023

+1, LGTM. Merging to master.
Thank you, @amousavigourabi.

@MaxGekk MaxGekk closed this in 49fc992 May 3, 2023
@MaxGekk
Copy link
Copy Markdown
Member

MaxGekk commented May 3, 2023

@amousavigourabi Congratulations with your first contribution to Apache Spark!

LuciferYang pushed a commit to LuciferYang/spark that referenced this pull request May 10, 2023
…with an internal error

### What changes were proposed in this pull request?
In this PR I propose to replace the legacy error class `_LEGACY_ERROR_TEMP_2014`, added as an `IllegalArgumentException` to avoid non-exhaustive case-matching in apache#22014, with an internal error as it is not triggered by the user space.

### Why are the changes needed?
As the error is not triggered by the user space, the legacy error class can be replaced by an internal error.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
No new tests were added and no tests needed changing because of the nature of the updated error class.

Closes apache#40951 from amousavigourabi/add-new-function-internal-error.

Lead-authored-by: amousavigourabi <28668597+amousavigourabi@users.noreply.github.com>
Co-authored-by: Atour <28668597+amousavigourabi@users.noreply.github.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants