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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: Queryable Encryption
    • Labels:
      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);

      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.

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

              Created:
              Updated:
              Resolved: