Failing on MongoDB the latest 4.1 build:
[2018/08/09 14:45:44.942] ERROR: test_aggregate (test_collection.TestCollection) [2018/08/09 14:45:44.942] ---------------------------------------------------------------------- [2018/08/09 14:45:44.942] Traceback (most recent call last): [2018/08/09 14:45:44.942] File "/data/mci/01e71b46512173570223044fc948d7c6/src/test/test_collection.py", line 1621, in test_aggregate [2018/08/09 14:45:44.942] coll.aggregate(out_pipeline) [2018/08/09 14:45:44.942] File "/data/mci/01e71b46512173570223044fc948d7c6/src/pymongo/collection.py", line 2397, in aggregate [2018/08/09 14:45:44.942] **kwargs) [2018/08/09 14:45:44.942] File "/data/mci/01e71b46512173570223044fc948d7c6/src/pymongo/collection.py", line 2304, in _aggregate [2018/08/09 14:45:44.942] client=self.__database.client) [2018/08/09 14:45:44.942] File "/data/mci/01e71b46512173570223044fc948d7c6/src/pymongo/pool.py", line 578, in command [2018/08/09 14:45:44.942] unacknowledged=unacknowledged) [2018/08/09 14:45:44.942] File "/data/mci/01e71b46512173570223044fc948d7c6/src/pymongo/network.py", line 150, in command [2018/08/09 14:45:44.942] parse_write_concern_error=parse_write_concern_error) [2018/08/09 14:45:44.942] File "/data/mci/01e71b46512173570223044fc948d7c6/src/pymongo/helpers.py", line 155, in _check_command_response [2018/08/09 14:45:44.942] raise OperationFailure(msg % errmsg, code, response) [2018/08/09 14:45:44.942] pymongo.errors.OperationFailure: Failed to extract unique key from input document: { foo: [ 1, 2 ] }
The failing operation is:
collection.aggregate([{"$project": {"_id": False, "foo": True}}, {'$out': 'output-collection'}])
- is caused by
-
SERVER-36598 aggregate $out fails when the _id is projected out with 4.1-latest
- Closed