You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-52945][SQL][TESTS] Split CastSuiteBase#checkInvalidCastFromNumericType into three methods and guarantee assertions are valid
### What changes were proposed in this pull request?
Due to the absence of `assert` statements, the `CastSuiteBase#checkInvalidCastFromNumericType` method previously performed no assertion checks.
Additionally, since `checkInvalidCastFromNumericType` had significant variations in target type validation logic across different `EvalMode` contexts, this pr refactors the method into three specialized methods to ensure robust assertion enforcement:
- `checkInvalidCastFromNumericTypeToDateType`
- `checkInvalidCastFromNumericTypeToTimestampNTZType`
- `checkInvalidCastFromNumericTypeToBinaryType`
### Why are the changes needed?
To address the missing assertion validation in `CastSuiteBase`.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
- Pass GitHub Actions
### Was this patch authored or co-authored using generative AI tooling?
No
Closes#51668 from LuciferYang/SPARK-52945.
Authored-by: yangjie01 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
0 commit comments