[MCOL-1527] Incorrect 0 row(s) affected on delete with cross engine join Created: 2018-07-04 Updated: 2021-10-01 Resolved: 2018-07-26 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.1.5 |
| Fix Version/s: | 1.1.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Stracke | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Sprint: | 2018-14, 2018-15 | ||||||||||||||||||||||||
| Description |
|
similar to Testcase:
|
| Comments |
| Comment by Roman [ 2018-07-17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please review. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2018-07-25 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build tested: 1.1.6-1 source /root/columnstore/mariadb-columnstore-server Merge pull request #123 from drrtuy/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #526 from mariadb-corporation/ Mcol 1535 First case, DELETE, is now returning correct row count Welcome to the MariaDB monitor. Commands end with ; or \g. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [mytest]> create table t_mcs (id int(11)) engine=Columnstore; MariaDB [mytest]> create table t_innodb (id int(11)) engine=InnoDB; MariaDB [mytest]> insert into t_mcs (id) values(1),(2),(3); MariaDB [mytest]> insert into t_innodb (id) values(1),(2),(3); MariaDB [mytest]> delete t_mcs from t_mcs inner join t_innodb using(id); MariaDB [mytest]> select * from t_mcs; MariaDB [mytest]> The 2nd case, UPDATE, is still returning incorrect row count MariaDB [mytest]> create table cs1 (t char(1),i int) engine=columnstore; MariaDB [mytest]> create table i1 (t char(1),i int) engine=innodb; MariaDB [mytest]> insert into cs1 values ('',1); MariaDB [mytest]> insert into cs1 values ('',7); MariaDB [mytest]> insert into cs1 values ('',7); MariaDB [mytest]> insert into i1 values ('',1); MariaDB [mytest]> insert into i1 values ('',2); MariaDB [mytest]> insert into i1 values ('',3); MariaDB [mytest]> insert into i1 values ('',5); MariaDB [mytest]> insert into i1 values ('',2); MariaDB [mytest]> insert into i1 values ('',3); MariaDB [mytest]> insert into i1 values ('',5); MariaDB [mytest]> insert into i1 values ('',2); MariaDB [mytest]> insert into i1 values ('',5); MariaDB [mytest]> select * from cs1;
-----
----- MariaDB [mytest]> select * from i1;
-----
----- MariaDB [mytest]> update cs1 join i1 on i1.i=cs1.i set cs1.t = 's' ; MariaDB [mytest]> select * from cs1;
-----
----- MariaDB [mytest]> select * from i1;
-----
----- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2018-07-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks remaining issue is being tracked by |