Github user mengxr commented on the issue:

    https://github.com/apache/spark/pull/13403
  
    @dongjoon-hyun @srowen I made a comment just before @dongjoon-hyun updated 
the PR:
    
    ~~~
    I think it should be approximate equality but with a very small tolerance, 
e.g. 1e-14. Both calls trigger reduce jobs and we don't have guarantees on the 
ordering or reduce operations, which might lead to small numerical errors. 
Maybe it doesn't apply to the test case here, but it is still a best practice 
to not test strict equality of floating-point numbers.
    ~~~


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to