-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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-45458][SQL] Convert IllegalArgumentException to SparkIllegalArgumentException in bitwiseExpressions #43271
Conversation
…gumentException in bitwiseExpressions and add some UT
…gumentException in bitwiseExpressions and add some UT
…gumentException in bitwiseExpressions and add some UT
…gumentException in bitwiseExpressions
@@ -92,6 +92,11 @@ | |||
], | |||
"sqlState" : "22003" | |||
}, | |||
"BIT_POSITION_OUT_OF_RANGE" : { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC we have an error class for invalid function arguments, shall we reuse it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the error class INVALID_PARAMETER_VALUE
, @panbingkun could you re-use or create a sub-class there, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, let me to do it.
@@ -92,6 +92,11 @@ | |||
], | |||
"sqlState" : "22003" | |||
}, | |||
"BIT_POSITION_OUT_OF_RANGE" : { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the error class INVALID_PARAMETER_VALUE
, @panbingkun could you re-use or create a sub-class there, please.
…gumentException in bitwiseExpressions
+1, LGTM. Merging to master. |
What changes were proposed in this pull request?
The pr aims to convert IllegalArgumentException to SparkIllegalArgumentException in bitwiseExpressions.
Why are the changes needed?
The changes improve the error framework.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No.