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-40998][SQL] Rename the error class _LEGACY_ERROR_TEMP_0040 to INVALID_IDENTIFIER #38484

Closed

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Nov 2, 2022

What changes were proposed in this pull request?

In the PR, I propose to assign the proper name INVALID_IDENTIFIER to the legacy error class _LEGACY_ERROR_TEMP_0040 , and modify test suite to use checkError() which checks the error class name, context and etc.

Why are the changes needed?

Proper name improves user experience w/ Spark SQL.

Does this PR introduce any user-facing change?

Yes, the PR changes an user-facing error message.

How was this patch tested?

By running the modified test suites:

$ build/sbt "core/testOnly *SparkThrowableSuite"
$ build/sbt "test:testOnly *ErrorParserSuite"

@MaxGekk MaxGekk changed the title [WIP][SQL] Rename the error class _LEGACY_ERROR_TEMP_0040 to INVALID_IDENTIFIER [WIP][SPARK-40998][SQL] Rename the error class _LEGACY_ERROR_TEMP_0040 to INVALID_IDENTIFIER Nov 2, 2022
@MaxGekk MaxGekk changed the title [WIP][SPARK-40998][SQL] Rename the error class _LEGACY_ERROR_TEMP_0040 to INVALID_IDENTIFIER [SPARK-40998][SQL] Rename the error class _LEGACY_ERROR_TEMP_0040 to INVALID_IDENTIFIER Nov 2, 2022
@MaxGekk MaxGekk marked this pull request as ready for review November 2, 2022 15:34
@MaxGekk
Copy link
Member Author

MaxGekk commented Nov 2, 2022

@srielau @itholic @panbingkun @LuciferYang @cloud-fan Could you review this PR, please.

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

Copy link
Contributor

@srielau srielau left a comment

Choose a reason for hiding this comment

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

LGTM

@MaxGekk
Copy link
Member Author

MaxGekk commented Nov 3, 2022

Merging to master. Thank you, @LuciferYang @srielau and @cloud-fan for review.

@MaxGekk MaxGekk closed this in a3c6cd6 Nov 3, 2022
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…o `INVALID_IDENTIFIER`

### What changes were proposed in this pull request?
In the PR, I propose to assign the proper name `INVALID_IDENTIFIER ` to the legacy error class `_LEGACY_ERROR_TEMP_0040 `, and modify test suite to use `checkError()` which checks the error class name, context and etc.

### Why are the changes needed?
Proper name improves user experience w/ Spark SQL.

### Does this PR introduce _any_ user-facing change?
Yes, the PR changes an user-facing error message.

### How was this patch tested?
By running the modified test suites:
```
$ build/sbt "core/testOnly *SparkThrowableSuite"
$ build/sbt "test:testOnly *ErrorParserSuite"
```

Closes apache#38484 from MaxGekk/invalid-identifier-error-class.

Authored-by: Max Gekk <max.gekk@gmail.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
Projects
None yet
4 participants