Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70359

Double -0 maps to negative-most value for Queryable Encryption Range

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • Queryable Encryption
    • None
    • Fully Compatible
    • ALL
    • Hide

      This test case fails in TEST(RangeTest, Int64_Bounds)

      ASSERT_EIB(-0.0, 9223372036854775808ULL); 

      Show
      This test case fails in TEST(RangeTest, Int64_Bounds) ASSERT_EIB(- 0.0 , 9223372036854775808ULL);

    Description

      Summary

      In getTypeInfoDouble:
      -0 is being mapped to the uint64_t value 0.
      +0 is being mapped to the uint64_t value 9223372036854775808ULL (2**63).
       
      Expect "-0" and "+0" to map to the same value.

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: