Yikun opened a new pull request #32349:
URL: https://github.com/apache/spark/pull/32349


   ### What changes were proposed in this pull request?
   This PR corrects some exception type when the function input params are 
failed to validate due to TypeError.
   
   ### Why are the changes needed?
   As suggestion from Python exception doc [1]: "Raised when an operation or 
function is applied to an object of inappropriate type.", but there are many 
Value error are raised in some pyspark code, this patch fix them.
   
   [1] https://docs.python.org/3/library/exceptions.html#TypeError
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, code can raise the right TypeError instead of ValueError.
   
   ### How was this patch tested?
   Existing test case and UT


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to