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-49222][SQL] Clear useless methods in QueryCompilationErrors #47740

Closed

Conversation

xuzifu666
Copy link
Contributor

What changes were proposed in this pull request?

Clear useless methods in QueryCompilationErrors

Why are the changes needed?

Some unused methods in QueryCompilationErrors need to clear

Does this PR introduce any user-facing change?

No

How was this patch tested?

Not need

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

No

@github-actions github-actions bot added the SQL label Aug 13, 2024
@xuzifu666
Copy link
Contributor Author

xuzifu666 commented Aug 13, 2024

@LuciferYang As talk yestday,these methods need to be deleted,PTAL

def cannotSaveVariantIntoExternalStorageError(): Throwable = {
new AnalysisException(
errorClass = "CANNOT_SAVE_VARIANT",
messageParameters = Map.empty)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these two error message templates, CANNOT_SAVE_VARIANT and INDETERMINATE_COLLATION, still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CANNOT_SAVE_VARIANT can be remove,but INDETERMINATE_COLLATION still in CollationIdentifier which maybe needed. I remove CANNOT_SAVE_VARIANT firstly? @LuciferYang

Copy link
Contributor

Choose a reason for hiding this comment

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

CollationIdentifier? INDETERMINATE_COLLATION_ID?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK,let's remove INDETERMINATE_COLLATION from error-conditions.json @LuciferYang

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

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

+1, LGTM

@LuciferYang
Copy link
Contributor

Let's wait for one more day to see if others have more suggestions.

@LuciferYang
Copy link
Contributor

Can you re-trigger GA? @xuzifu666

@xuzifu666
Copy link
Contributor Author

Can you re-trigger GA? @xuzifu666

OK,had rerun failed CI,seems not related to the changed code. @LuciferYang

Copy link
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.

@@ -3731,13 +3718,6 @@ private[sql] object QueryCompilationErrors extends QueryErrorsBase with Compilat
)
}

def indeterminateCollationError(): Throwable = {
Copy link
Member

Choose a reason for hiding this comment

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

Let's don't remove this, because it is supposed to use in the on-going PR: #46004

Copy link
Contributor

Choose a reason for hiding this comment

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

Got

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MaxGekk Had recover it,PTAL

Copy link
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.

Don't remove the INDETERMINATE_COLLATION error condition so far.

@xuzifu666
Copy link
Contributor Author

Don't remove the INDETERMINATE_COLLATION error condition so far.

Done

@MaxGekk
Copy link
Member

MaxGekk commented Aug 14, 2024

+1, LGTM. Merging to master.
Thank you, @xuzifu666 and @LuciferYang for review.

@MaxGekk MaxGekk closed this in 02795a3 Aug 14, 2024
IvanK-db pushed a commit to IvanK-db/spark that referenced this pull request Sep 20, 2024
### What changes were proposed in this pull request?

Clear useless methods in QueryCompilationErrors

### Why are the changes needed?

Some unused methods in QueryCompilationErrors need to clear

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

No

### How was this patch tested?

Not need

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

No

Closes apache#47740 from xuzifu666/clean_QueryCompilationErrors.

Authored-by: xuyu <11161569@vivo.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
### What changes were proposed in this pull request?

Clear useless methods in QueryCompilationErrors

### Why are the changes needed?

Some unused methods in QueryCompilationErrors need to clear

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

No

### How was this patch tested?

Not need

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

No

Closes apache#47740 from xuzifu666/clean_QueryCompilationErrors.

Authored-by: xuyu <11161569@vivo.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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants