Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
None
-
Query Integration
Description
db.u.drop()
|
db.u.insert({"a" : [ [ 1, 2 ], 3 ]})
|
|
|
db.u.distinct("a")
|
// result: [ 3, [ 1, 2 ] ]
|
|
|
db.u.createIndex({a: 1})
|
db.u.distinct("a")
|
// result: [ 1, 2, 3 ] -- the nested array [1, 2] got unwound but it shouldn't
|
// the plan here is PROJECTION_COVERED over DISTINCT_SCAN
|