[SERVER-44348] Disallow $near, $where in mapReduce Created: 31/Oct/19  Updated: 29/Oct/23  Resolved: 19/Nov/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.2.2

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2019-11-18, Query 2019-12-02
Participants:

 Description   

mapReduce currently supports query predicates which use $near or $where, but the aggregation framework rejects such predicates. In order to translate a mapReduce to an aggregation we'll have to stop supporting them or figure out some workaround.



 Comments   
Comment by Githook User [ 19/Nov/19 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@mongodb.com'}

Message: SERVER-44348 Add deprecation warning for , in mapReduce
Branch: v4.2
https://github.com/mongodb/mongo/commit/0a870f14f902b7c002ed0d12fbf44be97f08a8a4

Comment by Charlie Swanson [ 31/Oct/19 ]

There don't appear to be any tests covering this combination of features.

Generated at Thu Feb 08 05:05:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.