AngersZhuuuu opened a new pull request #34006:
URL: https://github.com/apache/spark/pull/34006


   ### What changes were proposed in this pull request?
   For query
   ```
   select arrays_overlap(array(cast('nan' as double), 1d), array(cast('nan' as 
double)))
   ```
   This returns [false], but it should return [true].
   This issue is caused by `OpenHashSet` can't handle `Double.NaN` and 
`Float.NaN` too.
   In this pr fix this based on https://github.com/apache/spark/pull/33955
   
   
   ### Why are the changes needed?
   Fix bug
   
   ### Does this PR introduce _any_ user-facing change?
   arrays_overlap won't handle equal `NaN` value
   
   
   ### How was this patch tested?
   Added 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