-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
ALL
-
-
24
-
None
-
None
-
None
-
None
-
None
-
None
-
None
{$bucketAuto: {
groupBy: {$add: [
{$const: {NumberLong("9223372036854775807")}},
"$measurement7",
{$const: 24784}]},
buckets: 5,
}}
optimizes to:
{$bucketAuto: {
groupBy: {$add: ["$measurement7", {$const: 9223372036854800000}]},
buckets: 5,
}}
which ends up producing just one bucket instead of two.
- is caused by
-
SERVER-63099 Constant folding should not assume arithmetic is associative or commutative in the general case
-
- Closed
-