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

[SPARK-49942][SQL] Rename errorClass to condition in classifyException() #48433

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Oct 12, 2024

What changes were proposed in this pull request?

In the PR, I propose to rename the errorClass parameter to condition in JdbcDialect.classifyException and in JdbcUtils.classifyException.

Why are the changes needed?

To follow new naming convention introduced by #44902.

Does this PR introduce any user-facing change?

No. The classifyException method has not been released yet.

How was this patch tested?

By running the existing GitHub actions.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Oct 12, 2024
@apache apache deleted a comment Oct 12, 2024
@MaxGekk MaxGekk changed the title [WIP] Rename errorClass to condition in JdbcDialect.classifyException [SPARK-49942][SQL] Rename errorClass to condition in JdbcDialect.classifyException Oct 12, 2024
@MaxGekk
Copy link
Member Author

MaxGekk commented Oct 14, 2024

@cloud-fan @ivanjevtic-db @milastdbx Please, review this PR. I would like to rename it since the function haven't released yet. So, it is safe for now.

@ivanjevtic-db
Copy link
Contributor

LGTM. One question: Are we also going to rename errorClass in classifyException from JDBCUtils?

messageParameters: Map[String, String],
description: String,
isRuntime: Boolean): Throwable with SparkThrowable = {
if (isRuntime) {
new SparkRuntimeException(
errorClass = errorClass,
errorClass = condition,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a plan to rename the errorClass argument to condition in SparkRuntimeException and AnalysisException?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

@MaxGekk
Copy link
Member Author

MaxGekk commented Oct 15, 2024

Are we also going to rename errorClass in classifyException from JDBCUtils?

Yep, let me rename it in the PR since it is related.

@MaxGekk MaxGekk changed the title [SPARK-49942][SQL] Rename errorClass to condition in JdbcDialect.classifyException [SPARK-49942][SQL] Rename errorClass to condition in classifyException() Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants