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


   ### What changes were proposed in this pull request?
   For query
   ```
   select array_distinct(array(cast('nan' as double), cast('nan' as double)))
   ```
   This returns [NaN, NaN], but it should return [NaN].
   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?
   ArrayUnion won't show duplicated `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