ueshin opened a new pull request #33193:
URL: https://github.com/apache/spark/pull/33193


   ### What changes were proposed in this pull request?
   
   This is a cherry-pick of #33179.
   
   We should use `check_exact=False` because the value check in 
`StatsTest.test_cov_corr_meta` is too strict.
   
   ### Why are the changes needed?
   
   In some environment, the precision could be different in pandas' 
`DataFrame.corr` function and the test `StatsTest.test_cov_corr_meta` fails.
   
   ```
   AssertionError: DataFrame.iloc[:, 0] (column name="a") are different
   DataFrame.iloc[:, 0] (column name="a") values are different (14.28571 %)
   [index]: [a, b, c, d, e, f, g]
   [left]:  [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0]
   [right]: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 4.807406715958909e-17]
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Modified tests should still pass.
   


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to