Skip to content

Comments

[SPARK-43251][SQL] Replace the error class _LEGACY_ERROR_TEMP_2015 with an internal error#42845

Closed
dengziming wants to merge 2 commits intoapache:masterfrom
dengziming:SPARK-43251
Closed

[SPARK-43251][SQL] Replace the error class _LEGACY_ERROR_TEMP_2015 with an internal error#42845
dengziming wants to merge 2 commits intoapache:masterfrom
dengziming:SPARK-43251

Conversation

@dengziming
Copy link
Member

What changes were proposed in this pull request?

Replace the legacy error class _LEGACY_ERROR_TEMP_2015 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?

Existing test cases.

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

No.

@github-actions github-actions bot added the SQL label Sep 7, 2023
@dengziming dengziming changed the title [SPARK-43251][SQL] Replace the error class with an internal error [SPARK-43251][SQL] Replace the error class _LEGACY_ERROR_TEMP_2015 with an internal error Sep 7, 2023
@dengziming
Copy link
Member Author

ping @MaxGekk

"dataType" -> dataType.catalogString))
codeType: String, dataType: DataType): Throwable = {
SparkException.internalError(
s"Cannot generate $codeType code for incomparable type: ${dataType.catalogString}.")
Copy link
Member

Choose a reason for hiding this comment

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

Could you quote the data type by bySQLType, please. Look at other example in the same file.

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.

@MaxGekk
Copy link
Member

MaxGekk commented Sep 11, 2023

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

@MaxGekk MaxGekk closed this in c7ea3f7 Sep 11, 2023
@dengziming dengziming deleted the SPARK-43251 branch September 21, 2023 07:30
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