[SPARK-56179][PYTHON] Consolidate error classes for type mismatch - part 3#55002
Closed
zhengruifeng wants to merge 1 commit intoapache:masterfrom
Closed
[SPARK-56179][PYTHON] Consolidate error classes for type mismatch - part 3#55002zhengruifeng wants to merge 1 commit intoapache:masterfrom
zhengruifeng wants to merge 1 commit intoapache:masterfrom
Conversation
7917a7c to
7b9aabc
Compare
…art 3 Co-authored-by: Isaac
7b9aabc to
8864327
Compare
allisonwang-db
approved these changes
Mar 25, 2026
Contributor
allisonwang-db
left a comment
There was a problem hiding this comment.
Great consolidation!
Contributor
Author
|
thanks, merged to master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Consolidate the last 12
NOT_*error classes intoNOT_EXPECTED_TYPE:NOT_LIST_OF_COLUMNNOT_LIST_OF_FLOAT_OR_INTNOT_LIST_OF_STRNOT_LIST_OR_NONE_OR_STRUCTNOT_LIST_OR_STR_OR_TUPLENOT_LIST_OR_TUPLENOT_OBSERVATION_OR_STRNOT_STRNOT_STRUCTNOT_STR_OR_LIST_OF_RDDNOT_STR_OR_STRUCTNOT_WINDOWSPECThis is a follow-up to #54978 and #54997.
Why are the changes needed?
There are around 40 error classes for type mismatch, they can be consolidated into a single
NOT_EXPECTED_TYPEclass.Does this PR introduce any user-facing change?
No
How was this patch tested?
CI
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-4-6)