Skip to content

Conversation

@itholic
Copy link
Contributor

@itholic itholic commented Oct 5, 2022

What changes were proposed in this pull request?

This PR proposes to migrate 25 execution errors onto temporary error classes with the prefix _LEGACY_ERROR_TEMP_2026 to _LEGACY_ERROR_TEMP_2050.

The error classes are prefixed with _LEGACY_ERROR_TEMP_ indicates the dev-facing error messages, and won't be exposed to end users.

Why are the changes needed?

To speed-up the error class migration.

The migration on temporary error classes allow us to analyze the errors, so we can detect the most popular error classes.

Does this PR introduce any user-facing change?

No

How was this patch tested?

$ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite"
$ build/sbt "test:testOnly *SQLQuerySuite"

@MaxGekk
Copy link
Member

MaxGekk commented Oct 5, 2022

@itholic Please, resolve conflicts.

@itholic itholic changed the title [WIP][SPARK-40540][SQL] Migrate execution errors onto error classes: _LEGACY_ERROR_TEMP_2026-2050 [WIP][SPARK-40663][SQL] Migrate execution errors onto error classes: _LEGACY_ERROR_TEMP_2026-2050 Oct 6, 2022
Comment on lines -3011 to -3015
"_LEGACY_ERROR_TEMP_2001" : {
"message" : [
"<message> If necessary set <ansiConfig> to false to bypass this error"
]
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed the #38104 (comment).

@MaxGekk FYI

def ansiIllegalArgumentError(message: String): SparkIllegalArgumentException = {
new SparkIllegalArgumentException(
errorClass = "_LEGACY_ERROR_TEMP_2001",
errorClass = "_LEGACY_ERROR_TEMP_2000",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

and here

@github-actions github-actions bot added the R label Oct 7, 2022
@itholic itholic changed the title [WIP][SPARK-40663][SQL] Migrate execution errors onto error classes: _LEGACY_ERROR_TEMP_2026-2050 [SPARK-40663][SQL] Migrate execution errors onto error classes: _LEGACY_ERROR_TEMP_2026-2050 Oct 8, 2022
@itholic itholic marked this pull request as ready for review October 8, 2022 12:52
@MaxGekk
Copy link
Member

MaxGekk commented Oct 9, 2022

Merging to master. Thank you, @itholic.

@MaxGekk MaxGekk closed this in 44151c7 Oct 9, 2022
@itholic itholic deleted the SPARK-40540-2026-2050 branch April 22, 2023 05:46
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