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

Expression (946-885)*1.0/946 < 0.1 and (946-885)*1.000/946 < 0.1 return different results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1
    • SQL
    • None

    Description

      both of the following sql statements

      select ((946-885)*1.000/946 < 0.1)
      

      and

      select ((946-885)*1.0/946 < 0.100)
      

      return true, while the following statement

      select ((946-885)*1.0/946 < 0.1)
      

      returns false

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              KevinZwx Kevin Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: