Call onSwitchToRoaring only when HashRoaringSet state changes.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2025-02-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      HashRoaringSet uses two conditions to decide whether it will switch to bitmap:
      1. Number of elements (threshold).
      2. Difference between the maximum and minimum value of the elements it has seen so far (universe size).

      It starts using the hashSet and when the number of elements has reached the threshold it checks whether `maxValue-minvalue < universe size`. If both conditions are met, it changes state and it should call the onSwitchToRoaring method. However, at the moment the onSwitchToRoaring method is called even when the state does not change.

            Assignee:
            Foteini Alvanaki
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: