[MCOL-1030] support non equality based joins and correlated subqueries Created: 2017-11-14 Updated: 2020-08-25 Resolved: 2017-11-27 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.0.11 |
| Fix Version/s: | Icebox |
| Type: | New Feature | Priority: | Major |
| Reporter: | Z | Assignee: | Andrew Hutchings (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS release 6.5 (Final) |
||
| Issue Links: |
|
||||||||
| Epic Link: | ColumnStore Compatibility Improvements | ||||||||
| Description |
MariaDB [test]> select * from test1;
-----
----- MariaDB [test]> select * from test2;
-----
-----
ERROR 1815 (HY000): Internal error: IDB-1000: 't1' and 'sub-query' are not joined. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2017-11-14 ] | |||||||||||
|
Could you please let us know what the intended use case for this query is? At the moment this appears to be a cartesian join inside the subquery which isn't supported. | |||||||||||
| Comment by David Thompson (Inactive) [ 2017-11-14 ] | |||||||||||
|
this is a correlated subquery since you are joining on the subquery table t2 to the outer query table t1. If you change the query to:
it works correctly. Also the following query has the same error:
So this is more of an enhancement to support non equality based joins i think. | |||||||||||
| Comment by David Thompson (Inactive) [ 2017-11-14 ] | |||||||||||
|
The original query does work with vtable mode 0 (https://mariadb.com/kb/en/library/columnstore-operating-mode/). but will be less performant on large data since the joins are not distributable.
| |||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-11-27 ] | |||||||||||
|
Marking as duplicate of MCOL-131 since fixing that will also resolve this issue. | |||||||||||
| Comment by David Hill (Inactive) [ 2019-08-06 ] | |||||||||||
|
Adding a customer issue number, than ran into the issue in there product. |