Scott Taylor created SPARK-8541:
-----------------------------------

             Summary: sumApprox and meanApprox doctests are incorrect
                 Key: SPARK-8541
                 URL: https://issues.apache.org/jira/browse/SPARK-8541
             Project: Spark
          Issue Type: Test
          Components: PySpark
    Affects Versions: 1.4.0, 1.3.1
            Reporter: Scott Taylor
            Priority: Minor


The doctests for sumApprox and meanApprox methods test against an upper bound 
but not a lower bound. If there was a regression in the underlying code that 
caused things to go wrong the doctest may not fail. For example if sumApprox 
returned 0 the doctest would return -1 which is less than 0.05. Solution is to 
use the abs() function to test that the approximate answer is within 5% of the 
exact answer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to