[MCOL-1964] GROUP BY doesn't process NOT IN + correlate subquery with aggregates Created: 2018-11-26  Updated: 2020-03-13  Resolved: 2020-02-19

Status: Closed
Project: MariaDB ColumnStore
Component/s: MDB Plugin
Affects Version/s: 1.2.2
Fix Version/s: 1.4.3

Type: Bug Priority: Minor
Reporter: Roman Assignee: Roman
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MCOL-2147 Semi-join with correllated subquery c... Closed
relates to MCOL-2165 Autoswitch broken in some cases in 1.2.2 Closed
Sprint: 2018-20, 2018-21, 2019-01, 2019-02, 2019-03, 2019-04, 2019-05, 2019-06

 Description   

The query

MariaDB [test]> set infinidb_vtable_mode=1;
Query OK, 0 rows affected (0.000 sec)

MariaDB [test]> select sum from cs2 where cs2.i not in ( select sum from cs3 );
--------

sum

--------

66

--------
1 row in set (0.057 sec)

MariaDB [test]> set infinidb_vtable_mode=0;
Query OK, 0 rows affected (0.000 sec)

MariaDB [test]> select sum from cs2 where cs2.i not in ( select sum from cs3 );
ERROR 1815 (HY000): Internal error: IDB-1001: Function 'trigcond' can only be used in the outermost select or order by clause and cannot be used in conjunction with an aggregate function.

 


Generated at Thu Feb 08 02:32:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.