ExportXMLWordPrintableJSON

    • DB Integration & Observability
    • Fully Compatible
    • ALL
    • v9.0, v8.3, v8.0, v7.0
    • QE 2026-09-15, QE 2026-09-28, QE 2026-10-12, QE 2026-10-26
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $bucket desugars itself into a $group stage by building a BSON $switch expression and re-parsing it. Boundary and default values are serialized as bare values, so a $literal containing a $-prefixed string (e.g. {$literal: "$color"} or {$literal: "$$ROOT"}) is re-parsed as a field-path / variable expression instead of remaining a constant.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: