[MCOL-4264] [Cross-Engine] UPDATE to INNODB table with WHERE clause using Columnstore as sub query failing Created: 2020-08-21 Updated: 2022-01-06 Resolved: 2020-09-09 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | N/A |
| Affects Version/s: | 1.5.3 |
| Fix Version/s: | 5.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | suresh ramagiri | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2020-8 | ||||||||
| Description |
|
UPDATE query to an innodb table with WHERE clause using the columnstore table as a sub query (Cross-engine query). Found that it errors as innodb table doesn't exist in Columnstore. Test Results:
But the same query, if we try to update an Columnstore table with WHERE clause using the innodb table as a sub query, is working.
|
| Comments |
| Comment by Todd Stoffel (Inactive) [ 2020-08-25 ] | ||||||||||||||||||||||||||||||||||||||||
|
This does not reproduce:
| ||||||||||||||||||||||||||||||||||||||||
| Comment by suresh ramagiri [ 2020-08-26 ] | ||||||||||||||||||||||||||||||||||||||||
|
Looking some more, it sounds like on the empty tables, UPDATE to the INNODB table with WHERE clause using the CS Table as a subquery, getting executed. My bad, in my repro steps, I should have mentioned to insert some data in those two tables and shown, then you would have reproduced the issue. Repro results: MariaDB [(none)]> create database suresh; MariaDB [suresh]> create table cstab1 (a int, b varchar(10)) engine=columnstore; MariaDB [suresh]> create table innotab1 (a int, b varchar(10));
MariaDB [suresh]> insert into cstab1 values (1,'aaa'),(2,'sas'); MariaDB [suresh]> insert into innotab1 values (11,'aaa'),(22,'sas'); MariaDB [suresh]> update innotab1 set a=100 where a not in (select a from cstab1 where a=1);
----------------
---------------- | ||||||||||||||||||||||||||||||||||||||||
| Comment by Todd Stoffel (Inactive) [ 2020-08-26 ] | ||||||||||||||||||||||||||||||||||||||||
|
Ok bug confirmed. This is the error:
| ||||||||||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2020-09-01 ] | ||||||||||||||||||||||||||||||||||||||||
|
Does not work in columnstore 1.2.6 – same result | ||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2020-09-03 ] | ||||||||||||||||||||||||||||||||||||||||
|
The same problem is repeatable with multi-table DELETE:
| ||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2020-09-09 ] | ||||||||||||||||||||||||||||||||||||||||
|
Build verified: 1.5.4-1 (Drone #595) Reproduced the issues in Drone build #587 and verified the fix in #595. |