[MCOL-4959] Delete IN (select id from columnstoreTable) not working Created: 2022-01-11 Updated: 2023-02-06 Resolved: 2022-11-30 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | 5.5.2 |
| Fix Version/s: | 6.4.6 |
| Type: | Bug | Priority: | Critical |
| Reporter: | andreas eschbacher | Assignee: | Roman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash, delete | ||
| Environment: |
MariaDB 10.5.10 |
||
| Description |
|
drop table if exists deleteTestInnoDB; drop table if exists deleteTestInnoDB2; drop table if exists deleteTestColumnstore; delete from deleteTestInnoDB where report_id in (select report_id from deleteTestColumnstore); – nothing is deleted!!! (In ETL: connection to ExeMgr was lost.) delete from deleteTestInnoDB where report_id in (select report_id from deleteTestInnoDB2); – works |
| Comments |
| Comment by Roman [ 2022-02-15 ] | |||||||||||||||||||||||||||
|
Greetings aeae81 | |||||||||||||||||||||||||||
| Comment by andreas eschbacher [ 2022-02-15 ] | |||||||||||||||||||||||||||
|
Hi Roman, I've tried on a Machine were we are running MariadbCS 10.6.3-MariaDB on, but there is the same behavior. | |||||||||||||||||||||||||||
| Comment by Roman [ 2022-02-16 ] | |||||||||||||||||||||||||||
|
Hm, I just retested the query and it works for me in the current develop-6.
Could you share the output from show status like 'columnstore%'; from 10.6 system? | |||||||||||||||||||||||||||
| Comment by Roman [ 2022-02-16 ] | |||||||||||||||||||||||||||
|
However DML queries with such pattern, namely delete from InnoDB filtering with MCS data might be a bit slow b/c MDB can query full scan only from MCS. | |||||||||||||||||||||||||||
| Comment by andreas eschbacher [ 2022-02-21 ] | |||||||||||||||||||||||||||
|
MariaDB [(none)]> show status like 'columnstore%';
------------------------
------------------------ | |||||||||||||||||||||||||||
| Comment by Roman [ 2022-03-04 ] | |||||||||||||||||||||||||||
|
aeae81 The next community MDB 10.6 release will contain MCS 6 where the issue is fixed. I would suggest you to upgrade to that version if it is acceptable. | |||||||||||||||||||||||||||
| Comment by Sergey Zefirov [ 2022-03-04 ] | |||||||||||||||||||||||||||
|
The following works alright on server 10.6 and columnstore's current develop:
The last SELECT returns only one row with zero in it, as it should. | |||||||||||||||||||||||||||
| Comment by andreas eschbacher [ 2023-02-06 ] | |||||||||||||||||||||||||||
|
@roman.nozdrin is still not possible in Columnstore_version | 5.6.8 | |