Tested on Aqua Data Studio 14.0-dev-47 Build #: 32127 on Ubuntu 12.04( Mongo DB 2.4.3) and Windows XP ( Mongo DB 2.0.9).
1. Alias for FROM( subselect) without AS word gives error. See first attached screenshot
2. In documentation FROM in the SELECT statement shown in brackets [] as optional. But SELECT 1 does not work
3. Using operations ( +, -...) with <ALIAS>.<field name> comming from result of FROM (subselect) as ALIAS gives error. See second attached screenshot. <ALIAS>.<field name> without operations works correct.
4. Strange that statement: SELECT _id FROM( SELECT city FROM baseball) return next unique _id from sequence instead null as _id is not present in subselect result set. See third attached screenshot. Also _id returned even if in subselect used not existed column. E.g. SELECT _id FROM( SELECT notexisted FROM baseball)
5. If in FROM subselect used one more level of subselect - empty result set returned instead rows. E.g. SELECT valuation FROM (SELECT valuation FROM (SELECT valuation FROM baseball)) If it is not possible then necessary note this in docs. Interesting that using many levels of nested subqueries in WHERE clause works. E.g. SELECT valuation FROM baseball WHERE valuation IN(SELECT valuation FROM baseball WHERE valuation IN(SELECT valuation FROM baseball ))
|
112 KB
|
106 KB
|
105 KB
|
105 KB
|
106 KB
|
112 KB
Emil, please take a look at 1, 3, 4, and 5.
2 is invalid. "SELECT 1" works correctly. "SELECT @@current_database" also works.
Closed as FROM (SELECT is ot supported anymore
Closed as FROM (SELECT is ot supported anymore
Issue #8909 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 14.0.0-beta-22 (mongo-jdbc 1.2.0) |
No time estimate |
2 issue links |
is broken by #9420
Issue #9420Temporary collection created by the program for FROM(SELECT stays in the DB |
is a duplicate of #8985
Issue #8985Derive table upto the second level should be supported |
Emil, please take a look at 1, 3, 4, and 5.
2 is invalid. "SELECT 1" works correctly. "SELECT @@current_database" also works.