Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
Description
The types of queries that result in errors are:
- have LIMIT in the subquery
- predicate with correlated references does not depend on the inner query (references exclusively outer table).
For example:
SELECT COUNT(DISTINCT(t1a)) FROM t1 WHERE t1d IN (SELECT t2d FROM t2 WHERE t1a IS NOT NULL LIMIT 10);
Here, WHERE t1a IS NOT NULL can be conceptually lifted to the join that connects inner and outer query.
Currently, this query results in an error ("no such element exception").
Attachments
Issue Links
- links to