[JAVA-2315] Group in aggregate accepts only one id Created: 16/Sep/16  Updated: 27/Nov/16  Resolved: 19/Sep/16

Status: Closed
Project: Java Driver
Component/s: Query Operations
Affects Version/s: 3.3.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Dew Agarwal Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello Team,

I want to pass two ids for grouping in aggregates.
But it seems driver supports only one id.
MongoDB although supports multiple ids.

Please help.



 Comments   
Comment by Ross Lawley [ 19/Sep/16 ]

No problems, I'm glad you got your answer.

Ross

Comment by Dew Agarwal [ 17/Sep/16 ]

Inconveniences regretted.

Comment by Dew Agarwal [ 17/Sep/16 ]

Hi Jeff,

Seems my problem is resolved. Refer use case simplified in link below:
http://stackoverflow.com/q/39537418/4232789

When I went through the documentation properly and tried out different queries, came to know that order by is not supported
in group stage.

You may proceed to close or reject this ticket.

Thanks ,
Dew Agarwal

Comment by Jeffrey Yemin [ 16/Sep/16 ]

Hi Dew,

Please provide an example of what you are trying to do using JSON syntax, and then we can determine whether there's an issue with Aggregate.group.

Regards,
Jeff

Comment by Dew Agarwal [ 16/Sep/16 ]

I am using the dependency as below:
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-async</artifactId>
<version>3.3.0</version>
</dependency>

Generated at Thu Feb 08 08:56:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.