Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1624

Test Failure - test_collection.TestCollection.test_aggregate

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.8
    • Affects Version/s: None
    • Component/s: Tests
    • None

      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'}])
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: