Tested in Aqua Data Studio 14.0.0-rc-44 Build #: 34314 on Ubuntu 12.04( Mongo DB 2.4.3) and Windows XP ( Mongo DB 2.0.9).
|
162 KB
|
125 KB
The MongoDB API doesn't provide support for sorting the resultset when the db.collection_name.distinct() function is used. There is an open upstream issue on the MongoDB Server issue tracker.
Inside our MongoDB JDBC driver, I've tried to mimic the support for this by sorting them using a limited set of sorting rules. Of course, this is not an all-round emulation and differences might occur, as you have noticed.
I've enhanced the emulated sorting rules in order to fix the failing scenarios.
Tested in Aqua Data Studio 14.0.3-14 Build #: 34647 on Ubuntu 12.04
In next statement DESC works wrong (ASC works correct)
Tested in Aqua Data Studio 14.0.3-14 Build #: 34647 on Ubuntu 12.04
In next statement DESC works wrong (ASC works correct)
Pls log new issue with any remaining defects
Pls log new issue with any remaining defects
Issue #10474 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 14.0.3-11 (mongo-jdbc 1.3.9) |
No time estimate |
1 issue link |
relates to #10700
Issue #10700Issues with ORDER BY when DISTINCT in the WHAT for the record type |
The MongoDB API doesn't provide support for sorting the resultset when the db.collection_name.distinct() function is used. There is an open upstream issue on the MongoDB Server issue tracker.
Inside our MongoDB JDBC driver, I've tried to mimic the support for this by sorting them using a limited set of sorting rules. Of course, this is not an all-round emulation and differences might occur, as you have noticed.
I've enhanced the emulated sorting rules in order to fix the failing scenarios.