feat: Index checking for aggregates that start with $match INTELLIJ-139 #668
Annotations
16 errors
MongoshDialectFormatterTest.can format an aggregate query with a match expression at the beginning():
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L155
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).aggregate([ { "$match": { "myField": "myVal"}}])> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.aggregate(
[
{"$match": {"myField": "myVal"}}
]
)>
|
MongoshDialectFormatterTest.[1] in:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L381
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "myField": { "$in": [1, 2]}, })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"myField": {"$in": [1, 2]}, }
)>
|
MongoshDialectFormatterTest.[2] nin:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L381
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "myField": { "$nin": [1, 2]}, })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"myField": {"$nin": [1, 2]}, }
)>
|
MongoshDialectFormatterTest.[1] lt:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L346
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "myField": { "$lt": "myVal"}, })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"myField": {"$lt": "myVal"}, }
)>
|
MongoshDialectFormatterTest.[2] lte:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L346
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "myField": { "$lte": "myVal"}, })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"myField": {"$lte": "myVal"}, }
)>
|
MongoshDialectFormatterTest.[3] gt:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L346
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "myField": { "$gt": "myVal"}, })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"myField": {"$gt": "myVal"}, }
)>
|
MongoshDialectFormatterTest.[4] gte:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L346
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "myField": { "$gte": "myVal"}, })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"myField": {"$gte": "myVal"}, }
)>
|
MongoshDialectFormatterTest.can format an explain command for a valid aggregate query():
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L207
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).explain().aggregate([ { "$match": { "myField": "myVal"}}])> but was: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).explain().aggregate([{"$match": {"myField": "myVal"}}])>
|
MongoshDialectFormatterTest.can format a query with an explain plan():
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L121
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).explain().find({ "myField": "myVal", })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).explain().find({"myField": "myVal", })>
|
MongoshDialectFormatterTest.can format a simple query():
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L54
org.opentest4j.AssertionFailedError: expected: <db.getSiblingDB("myDb").getCollection("myColl").find({ "myField": "myVal", })> but was: <db.getSiblingDB("myDb")
.getCollection("myColl")
.find(
{"myField": "myVal", }
)>
|
MongoshDialectFormatterTest.can format a query without references to a collection reference():
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L19
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "myField": "myVal", })> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"myField": "myVal", }
)>
|
MongoshDialectFormatterTest.[1] and:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L260
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "$and": [ { "myField": "myVal"}, ]})> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"$and": [
{"myField": "myVal"},
]}
)>
|
MongoshDialectFormatterTest.[2] or:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L260
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "$or": [ { "myField": "myVal"}, ]})> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"$or": [
{"myField": "myVal"},
]}
)>
|
MongoshDialectFormatterTest.[3] nor:
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L260
org.opentest4j.AssertionFailedError: expected: <var collection = ""
var database = ""
db.getSiblingDB(database).getCollection(collection).find({ "$nor": [ { "myField": "myVal"}, ]})> but was: <var collection = ""
var database = ""
db.getSiblingDB(database)
.getCollection(collection)
.find(
{"$nor": [
{"myField": "myVal"},
]}
)>
|
MongoshDialectFormatterTest.can format a simple delete query():
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L88
org.opentest4j.AssertionFailedError: expected: <db.getSiblingDB("myDb").getCollection("myColl").deleteMany({ "myField": "myVal", })> but was: <db.getSiblingDB("myDb")
.getCollection("myColl")
.deleteMany(
{"myField": "myVal", }
)>
|
MongoshDialectFormatterTest.can format query using the not operator():
packages/mongodb-dialects/mongosh/src/test/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatterTest.kt#L296
org.opentest4j.AssertionFailedError: expected: <db.getSiblingDB("myDb").getCollection("myColl").find({ "myField": { "$not": "myVal"}, })> but was: <db.getSiblingDB("myDb")
.getCollection("myColl")
.find(
{"myField": {"$not": "myVal"}, }
)>
|