Assert input expression to $minMaxScaler must evaluate to a numeric

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • 200
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The newly introduced $minMaxScaler window function for the $setWindowFields stage does not currently assert that the evaluated expression is a numeric type.

      If a non-numeric expression is given as input, a downstream tripwire assertion will be triggered in the 'mongo::min_max_scaler::MinAndMax::update' function. Instead, we want to fail these query upstream, with a clear error message, with a uassert (indicating user error).

              Assignee:
              Joe Shalabi
              Reporter:
              Joe Shalabi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: