-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
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.