Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fixed issue link and clean up integration test provider setup #3052

Merged
merged 7 commits into from
Jul 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add skipped test
  • Loading branch information
chilagrow committed Jul 14, 2023
commit f176180798886b90fb95a46136488f138997ed33
15 changes: 15 additions & 0 deletions integration/aggregate_documents_compat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,21 @@ func TestAggregateCompatGroupDeterministicCollections(t *testing.T) {
bson.D{{"$sort", bson.D{{"_id", -1}}}},
},
},
"Distinct": {
pipeline: bson.A{
// sort collection to ensure the order is consistent
bson.D{{"$sort", bson.D{{"_id", 1}}}},
bson.D{{"$group", bson.D{
{"_id", "$v"},
// set first _id of the collection as group's unique value
{"unique", bson.D{{"$first", "$_id"}}},
}}},
// ensure output is ordered by the _id of the collection, not _id of the group
// because _id of group can be an array
bson.D{{"$sort", bson.D{{"unique", 1}}}},
},
skip: "https://github.com/FerretDB/FerretDB/issues/2184",
},
"CountValue": {
pipeline: bson.A{
// sort to assure the same type of values (while grouping 2 types with the same value,
Expand Down