[JAVA-5190] Disable failing $lookup test Created: 05/Oct/23  Updated: 06/Oct/23  Resolved: 06/Oct/23

Status: Closed
Project: Java Driver
Component/s: Aggregation, Test Coverage
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Jeffrey Yemin Assignee: Maxim Katcharov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The test com.mongodb.client.model.AggregatesTest#testDocumentsLookup is failing against the mainline server build (post 7.0 release). The pipeline is:

[
  {'$lookup': {'from': 'ignored', 'pipeline': [{'$documents': [{'a': 5}]}], 'as': 'added'}}
]

and the server error is:

{
  "ok": 0.0, 
  "errmsg": "'$documents' can only be run with {aggregate: 1}", 
   "code": 73,
   "codeName": "InvalidNamespace"}

Checking with query execution team whether this change is intentional, but meanwhile we should at least disable the test.



 Comments   
Comment by Githook User [ 06/Oct/23 ]

Author:

{'name': 'Maxim Katcharov', 'email': 'maxim.katcharov@mongodb.com', 'username': 'katcharov'}

Message: $lookup "from" must be null when using $documents pipeline (#1218)

JAVA-5190
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a45742a4b3b9ac9abbe6e7d9912e3f90e95420b9

Generated at Thu Feb 08 09:03:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.