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-49971][SQL] Assign proper error condition for _LEGACY_ERROR_TEMP_1097 #48471

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

itholic
Copy link
Contributor

@itholic itholic commented Oct 15, 2024

What changes were proposed in this pull request?

This PR proposes to assign proper error condition & sqlstate for _LEGACY_ERROR_TEMP_1097

Why are the changes needed?

To improve the error message by assigning proper error condition and SQLSTATE

Does this PR introduce any user-facing change?

No, only user-facing error message improved

How was this patch tested?

Updated the existing tests

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

No

@itholic itholic requested a review from MaxGekk October 15, 2024 06:53
@github-actions github-actions bot added the SQL label Oct 15, 2024
@itholic
Copy link
Contributor Author

itholic commented Oct 16, 2024

Thanks @MaxGekk for the review! Applied the comments

@MaxGekk
Copy link
Member

MaxGekk commented Oct 16, 2024

@itholic Could you fix the failed tests:

[info] - verify corrupt column *** FAILED *** (3 milliseconds)
[info]   (non-codegen mode) Expected error message is `The field for corrupt records must be string type and nullable`, but `[INVALID_CORRUPT_RECORD_TYPE] The column `_unparsed` for corrupt records must have the nullable STRING type, but got "BOOLEAN". SQLSTATE: 42804` found (ExpressionEvalHelper.scala:226)

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