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

Use and extend REGISTER_ACCUMULATOR_WITH_MIN_VERSION macro once FCV constants are upgraded

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QE 2021-09-20
    • 35

      From the design: 

      We will add a ‘featureFlagTopNAccumulator’ feature flag as part of this project to ensure that the new accumulators and expressions don’t get used when the FCV is less than 5.1. This feature flag can then be used with the appropriate ‘register’ macros to ensure that the new accumulators, window functions, and expressions are FCV gated properly.

      Additionally, these new accumulators will not be part of the stable API initially, so we will need to extend the REGISTER_ACCUMULATOR_WITH_MIN_VERSION macro to perform an api version check, similar to the ones which exist for expressions and pipeline stages.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: