[MCOL-1620] Update with subquery treated as unsupported cartesian join, but multi-table update works Created: 2018-08-02 Updated: 2021-12-21 Resolved: 2021-01-15 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | N/A |
| Affects Version/s: | 1.1.5 |
| Fix Version/s: | 5.5.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Roman |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
If we create the following tables:
The following update fails:
And the error log seems to indicate that this is treated as a cartesian join, which is unsupported (MCOL-131):
But if it is rewritten with the multi-table update syntax, then it works fine:
|
| Comments |
| Comment by David Hill (Inactive) [ 2020-09-22 ] | ||||
|
I reproduced with a simple test related to case 119990. MariaDB [david]> select * from biomarker;
--------------
-------------- MariaDB [david]> select * from tmp;
------
------ MariaDB [david]> select * from tmp rsv join(select max(biomarker_id) from biomarker) fl | ||||
| Comment by Roman [ 2020-09-23 ] | ||||
|
hill nicklamb From the perspective of Columnstore your case is a cartesian join b/c there is no equi-join conditions. |