Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19072

Catalyst's IN always returns false for infinity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • SQL, Tests
    • None

    Description

      This bug was caused by the fix for SPARK-18999 (https://github.com/apache/spark/pull/16402)

      This can be reproduced by adding the following test to PredicateSuite.scala (which will consistently fail):

      val value = NonFoldableLiteral(Double.PositiveInfinity, DoubleType)
      checkEvaluation(In(value, List(value)), true)

      This bug is causing org.apache.spark.sql.catalyst.expressions.PredicateSuite.IN to fail approximately 10% of the time (it fails anytime the value is Infinity or -Infinity and the correct answer is True – e.g., https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70826/testReport/org.apache.spark.sql.catalyst.expressions/PredicateSuite/IN/, https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70830/console).

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            kayousterhout Kay Ousterhout
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: