Fix histogram generation on MacOs

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • QO 2022-12-26
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Builds on MacOs create a different histogram from the same data than the histogram on Linux and Windows builds.
      The data set in MinValueMixedHistogramFromData test

      100 1000 "abc" "xyz" ObjectId("63340d8d27afef2de7357e8d") 1506777923000 1516864323000 Timestamp(1516864323, 0) Timestamp(1526864323, 0)

      creates a 6-bucket histogram on Linux

       

      {{100, 1, 0, 0},
      {1000, 1, 0, 0},
      {"abc", 1, 0, 0},
      {ObjectId("63340d8d27afef2de7357e8d"), 1, 1, 1},
      {1516864323000, 1, 1, 1},
      {Timestamp(1526864323, 0), 1, 1, 1},
      }
      

       
      On MacOs the same data produce

      {{100, 1, 0, 0},
      {1000, 1, 0, 0},
      {ObjectId("63340d8d27afef2de7357e8d"), 1, 2, 2},
      {1506777923000, 1, 0, 0},
      {1516864323000, 1, 0, 0},
      {Timestamp(1526864323, 0), 1, 1, 1},
      }
      

       
      In other words, on MacOs both string values are packed inside the bucket for the ObjectId values. This enables an extra histogram bucket for the dates, and that results in different CE.

            Assignee:
            Alya Berciu
            Reporter:
            Milena Ivanova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: