Add builder support for the $minMaxScaler window operator

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Component/s: CRUD
    • None
    • Builder Changes Needed
    • Hide

      Summary of necessary driver changes

      • Add builder support for the $minMaxScaler window operator

      Context for other referenced/linked tickets

      Show
      Summary of necessary driver changes Add builder support for the $minMaxScaler window operator Context for other referenced/linked tickets https://www.mongodb.com/docs/manual/reference/operator/aggregation/minMaxScaler/
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CSHARP-6041 Backlog
      JAVA-6201 Needs Triage
      INTPYTHON-962 Backlog
      PHPLIB-1849 Fixed 2.4.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } #scriptField td.willNotDo { background-color: #FF0000; /* Red color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CSHARP-6041 Backlog JAVA-6201 Needs Triage INTPYTHON-962 Backlog PHPLIB-1849 Fixed 2.4.0

      Summary

      Add driver support for the $minMaxScaler window operator. $minMaxScaler linearly rescales numeric values within a window to a target range using an observed minimum and maximum, and is valid only as an output expression inside $setWindowFields. The common normalization use case in $rankFusion / $scoreFusion is already covered by those stages' built-in normalization parameter (e.g. "normalization: minMaxScaler"); this ticket is for the standalone operator, which is the implementation building block behind that shorthand and is intended for power users building custom normalization workflows.

      Motivation

      Who is the affected end user?

      Application developers building custom score normalization or general numeric rescaling inside $setWindowFields. Most users normalizing scores for fusion stages will rely on $rankFusion / $scoreFusion's
      built-in normalization parameter and never reach for the standalone operator.

      How does this affect the end user?

      Annoyed — must inject $minMaxScaler via raw BSON when building custom $setWindowFields output expressions.

      How likely is it that this problem or use case will occur?

      Edge case. The standalone operator is the implementation building block behind the $scoreFusion shorthand "normalization: minMaxScaler"; the majority of users will use the shorthand and not need the operator
      directly.

      If the problem does occur, what are the consequences and how severe are they?

      Friction and inconsistency; no severe runtime consequence.

      Is this issue urgent?

      Not urgent.

      Is this ticket required by a downstream team?

      Not directly required by Atlas / Shell / Compass.

      Is this ticket only for tests?

      No — functional builder API work.

      Acceptance Criteria

      Support for a $minMaxScaler window operator builder exists in each driver's $setWindowFields output builder surface.

            Assignee:
            Unassigned
            Reporter:
            Adelin Mbida Owona
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: