-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d17602b
commit 27b19b3
Showing
18 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
core/src/test/resources/dev/morphia/test/aggregation/expressions/concat/example1/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ "_id" : 1, "item" : "ABC1", quarter: "13Q1", "description" : "product 1" } | ||
{ "_id" : 2, "item" : "ABC2", quarter: "13Q4", "description" : "product 2" } | ||
{ "_id" : 3, "item" : "XYZ1", quarter: "14Q2", "description" : null } | ||
{ _id : 1, item : "ABC1", quarter: "13Q1", description : "product 1" }, | ||
{ _id : 2, item : "ABC2", quarter: "13Q4", description : "product 2" }, | ||
{ _id : 3, item : "XYZ1", quarter: "14Q2", description : null } |
6 changes: 3 additions & 3 deletions
6
...src/test/resources/dev/morphia/test/aggregation/expressions/concat/example1/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ "_id" : 1, "itemDescription" : "ABC1 - product 1" } | ||
{ "_id" : 2, "itemDescription" : "ABC2 - product 2" } | ||
{ "_id" : 3, "itemDescription" : null } | ||
{ _id : 1, itemDescription : "ABC1 - product 1" } | ||
{ _id : 2, itemDescription : "ABC2 - product 2" } | ||
{ _id : 3, itemDescription : null } |
2 changes: 1 addition & 1 deletion
2
core/src/test/resources/dev/morphia/test/aggregation/expressions/minute/example1/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "_id" : 1, "item" : "abc", "price" : 10, "quantity" : 2, "date" : ISODate("2014-01-01T08:15:39.736Z")} | ||
{ "_id" : 1, "item" : "abc", "price" : 10, "quantity" : 2, "date" : ISODate("2014-01-01T08:15:39.736Z") } |
2 changes: 1 addition & 1 deletion
2
core/src/test/resources/dev/morphia/test/aggregation/expressions/month/example1/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "_id" : 1, "item" : "abc", "price" : 10, "quantity" : 2, "date" : ISODate("2014-01-01T08:15:39.736Z")} | ||
{ "_id" : 1, "item" : "abc", "price" : 10, "quantity" : 2, "date" : ISODate("2014-01-01T08:15:39.736Z") } |
1 change: 1 addition & 0 deletions
1
core/src/test/resources/dev/morphia/test/aggregation/expressions/rank/example3/lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
the docs seem to be in conflict with what's actually happening in the server |
4 changes: 2 additions & 2 deletions
4
...src/test/resources/dev/morphia/test/aggregation/expressions/strcasecmp/example1/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ "_id" : 1, "item" : "ABC1", quarter: "13Q1", "description" : "product 1" } | ||
{ "_id" : 2, "item" : "ABC2", quarter: "13Q4", "description" : "product 2" } | ||
{ "_id" : 1, "item" : "ABC1", quarter: "13Q1", "description" : "product 1" }, | ||
{ "_id" : 2, "item" : "ABC2", quarter: "13Q4", "description" : "product 2" }, | ||
{ "_id" : 3, "item" : "XYZ1", quarter: "14Q2", "description" : null } |
4 changes: 2 additions & 2 deletions
4
core/src/test/resources/dev/morphia/test/aggregation/expressions/toLower/example1/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ "_id" : 1, "item" : "ABC1", quarter: "13Q1", "description" : "PRODUCT 1" } | ||
{ "_id" : 2, "item" : "abc2", quarter: "13Q4", "description" : "Product 2" } | ||
{ "_id" : 1, "item" : "ABC1", quarter: "13Q1", "description" : "PRODUCT 1" }, | ||
{ "_id" : 2, "item" : "abc2", quarter: "13Q4", "description" : "Product 2" }, | ||
{ "_id" : 3, "item" : "xyz1", quarter: "14Q2", "description" : null } |
4 changes: 2 additions & 2 deletions
4
core/src/test/resources/dev/morphia/test/aggregation/expressions/toUpper/example1/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ "_id" : 1, "item" : "ABC1", quarter: "13Q1", "description" : "PRODUCT 1" } | ||
{ "_id" : 2, "item" : "abc2", quarter: "13Q4", "description" : "Product 2" } | ||
{ "_id" : 1, "item" : "ABC1", quarter: "13Q1", "description" : "PRODUCT 1" }, | ||
{ "_id" : 2, "item" : "abc2", quarter: "13Q4", "description" : "Product 2" }, | ||
{ "_id" : 3, "item" : "xyz1", quarter: "14Q2", "description" : null } |
3 changes: 3 additions & 0 deletions
3
core/src/test/resources/dev/morphia/test/aggregation/stages/addFields/example5/action.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
$addFields: { date: "$$REMOVE" } | ||
} |
3 changes: 3 additions & 0 deletions
3
core/src/test/resources/dev/morphia/test/aggregation/stages/addFields/example5/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ date: ISODate("2024-10-09"), temperature: 80 }, | ||
{ date: null, temperature: 83 }, | ||
{ date: ISODate("2024-12-09"), temperature: 85 } |
3 changes: 3 additions & 0 deletions
3
core/src/test/resources/dev/morphia/test/aggregation/stages/addFields/example5/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ _id: ObjectId('671285306fd2c3b24f2e7eaa'), temperature: 80 }, | ||
{ _id: ObjectId('671285306fd2c3b24f2e7eab'), temperature: 83 }, | ||
{ _id: ObjectId('671285306fd2c3b24f2e7eac'), temperature: 85 } |
1 change: 1 addition & 0 deletions
1
core/src/test/resources/dev/morphia/test/aggregation/stages/addFields/example5/name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove Fields |
2 changes: 1 addition & 1 deletion
2
.../test/resources/dev/morphia/test/aggregation/stages/planCacheStats/example3/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ version: '2', queryHash: '478AD696', planCacheKey: 'B1435201', isActive: true, works: NumberLong("5"), timeOfCreation: ISODate("2023-05-22T20:33:49.009Z"), cachedPlan: { slots: '$$RESULT=s11 env: { s3 = 1684787629009 (NOW), s6 = Nothing, s5 = Nothing, s1 = TimeZoneDatabase(Asia/Kuwait...Etc/UCT) (timeZoneDB), s10 = {"item" : 1, "price" : 1}, s2 = Nothing (SEARCH_META) }', stages: '[2] nlj inner [] [s4, s7, s8, s9, s10] \n' + ' left \n' + ' [1] cfilter {(exists(s5) && exists(s6))} \n' + ' [1] ixseek s5 s6 s9 s4 s7 s8 [] @"358822b7-c129-47b7-ad7f-40017a51b03c" @"item_1_price_1" true \n' + ' right \n' + ' [2] limit 1 \n' + ' [2] seek s4 s11 s12 s7 s8 s9 s10 none none [] @"358822b7-c129-47b7-ad7f-40017a51b03c" true false \n' }, indexFilterSet: false, isPinned: false, estimatedSizeBytes: NumberLong("7415"), host: 'mongodb1.example.net:27018' } | ||
{ version: '2', planCacheShapeHash: '478AD696', planCacheKey: 'B1435201', isActive: true, works: NumberLong("5"), timeOfCreation: ISODate("2023-05-22T20:33:49.009Z"), cachedPlan: { slots: '$$RESULT=s11 env: { s3 = 1684787629009 (NOW), s6 = Nothing, s5 = Nothing, s1 = TimeZoneDatabase(Asia/Kuwait...Etc/UCT) (timeZoneDB), s10 = {"item" : 1, "price" : 1}, s2 = Nothing (SEARCH_META) }', stages: '[2] nlj inner [] [s4, s7, s8, s9, s10] \n' + ' left \n' + ' [1] cfilter {(exists(s5) && exists(s6))} \n' + ' [1] ixseek s5 s6 s9 s4 s7 s8 [] @"358822b7-c129-47b7-ad7f-40017a51b03c" @"item_1_price_1" true \n' + ' right \n' + ' [2] limit 1 \n' + ' [2] seek s4 s11 s12 s7 s8 s9 s10 none none [] @"358822b7-c129-47b7-ad7f-40017a51b03c" true false \n' }, indexFilterSet: false, isPinned: false, estimatedSizeBytes: NumberLong("7415"), host: 'mongodb1.example.net:27018' } |
2 changes: 1 addition & 1 deletion
2
core/src/test/resources/dev/morphia/test/query/filters/expr/example2/name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Using ``$expr`` With Conditional Statements | ||
Use $expr With Conditional Statements |