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

   ### What changes were proposed in this pull request?
   Since Pandas 1.4.0, pandas are using `numpy.insert`, `numpy.insert` raises 
indexError when insert loc is out of bounds.
   
   Related changes:
   - panda 1.4.0+ using numpy insert: 
https://github.com/pandas-dev/pandas/commit/c021d33ecf0e096a186edb731964767e9288a875
   - numpy 1.20+ fix the issue: 
https://github.com/numpy/numpy/commit/be11c06de7cf128c364c33dafbdecd2372f322e6 
(raised TypeError accidently before)
   
   ### Why are the changes needed?
   Follow pandas behaviors.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, raise the index error in index out of bounds case, follow pandas 
behaviors.
   
   
   ### How was this patch tested?
   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.

To unsubscribe, e-mail: [email protected]

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