The following query returns 6 rows.
select * from uniontest union all select * from uniontest
select * from( select * from uniontest union all select * from uniontest)
When using subqueries as datasource ( e.g. select * from (select .... )
), the resultset of the inner query is saved as a temporary collection. This is required to be able to apply WHERE filters on the outer query. Because the resultset of the inner query (the UNION ALL compound select) contains _id duplicates, only 3 rows are saved on the temporary collection.
Next week I'll look for a workaround on this problem.
When using subqueries as datasource ( e.g. select * from (select .... )
), the resultset of the inner query is saved as a temporary collection. This is required to be able to apply WHERE filters on the outer query. Because the resultset of the inner query (the UNION ALL compound select) contains _id duplicates, only 3 rows are saved on the temporary collection.
Next week I'll look for a workaround on this problem.
Hi Emil,
Could you please inform if you are going to work on this issue further? Thanks
Hi Emil,
Could you please inform if you are going to work on this issue further? Thanks
No, because the support for subqueries (i.e. query inside the FROM clause) has been removed. SELECT ... FROM SELECT ... queries were requiring an intermediate collection for storing the result of the inner query, thus performing unexpected write operations. There were many other concerns, see issue #9420 for more details.
No, because the support for subqueries (i.e. query inside the FROM clause) has been removed. SELECT ... FROM SELECT ... queries were requiring an intermediate collection for storing the result of the inner query, thus performing unexpected write operations. There were many other concerns, see issue #9420 for more details.
Issue #8878 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 14.0.0-beta-32 (mongo-jdbc 1.2.1) |
No time estimate |
1 issue link |
is broken by #9420
Issue #9420Temporary collection created by the program for FROM(SELECT stays in the DB |
The following query returns 6 rows.