Skip to content

[SPARK-49222][SQL] Clear useless methods in QueryCompilationErrors#47740

Closed
xuzifu666 wants to merge 5 commits into
apache:masterfrom
xuzifu666:clean_QueryCompilationErrors
Closed

[SPARK-49222][SQL] Clear useless methods in QueryCompilationErrors#47740
xuzifu666 wants to merge 5 commits into
apache:masterfrom
xuzifu666:clean_QueryCompilationErrors

Conversation

@xuzifu666
Copy link
Copy Markdown
Member

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
Copy Markdown
Member 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
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@LuciferYang
Copy link
Copy Markdown
Contributor

Can you re-trigger GA? @xuzifu666

@xuzifu666
Copy link
Copy Markdown
Member Author

Can you re-trigger GA? @xuzifu666

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

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.

)
}

def indeterminateCollationError(): Throwable = {
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Got

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

Don't remove the INDETERMINATE_COLLATION error condition so far.

@xuzifu666
Copy link
Copy Markdown
Member Author

Don't remove the INDETERMINATE_COLLATION error condition so far.

Done

@MaxGekk
Copy link
Copy Markdown
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
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