[MCOL-1156] Incorrect 0 row(s) affected on delete Created: 2018-01-11 Updated: 2021-10-01 Resolved: 2018-03-21 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.1.2 |
| Fix Version/s: | 1.1.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | MIke Thibodeau | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
– version=10.2.10-MariaDB-log |
||
| Issue Links: |
|
||||||||||||||||
| Sprint: | 2018-03, 2018-04, 2018-05, 2018-06 | ||||||||||||||||
| Description |
|
when I was doing some tests I observed that when I delete a row (via a join to another column store table) the server reports 0 rows affected even when row is deleted. Here's a sample... – version=10.2.10-MariaDB-log CREATE TABLE cs1 ( CREATE TABLE cs2 ( INSERT INTO cs2 VALUES (1, '2018-01-09 21:59:02', 22.22); SELECT * FROM cs1; INSERT INTO cs1 VALUES (1, '2018-01-09 21:59:02', 11.11); SELECT * FROM cs1; SELECT * FROM cs1; SELECT * FROM cs2; |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-01-11 ] | ||||||||||||
|
This is a duplicate of | ||||||||||||
| Comment by MIke Thibodeau [ 2018-01-11 ] | ||||||||||||
|
Sorry about the dup... I saw | ||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-01-11 ] | ||||||||||||
|
You are right, this is slightly different and isn't fixed yet. Reopening. | ||||||||||||
| Comment by MIke Thibodeau [ 2018-01-12 ] | ||||||||||||
|
UPDATE reports all the rows as affected not just those with a change. Is that a duplicate of this issue? | ||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-01-12 ] | ||||||||||||
|
Could be, I'm not sure on the root cause yet. I'll investigate it at the same time. | ||||||||||||
| Comment by Roman [ 2018-02-11 ] | ||||||||||||
|
Here is a quick hack to get over with the issue and here are the results. | ||||||||||||
| Comment by Roman [ 2018-02-12 ] | ||||||||||||
|
Current CS implementation bypasses the section, which produces affected rows number. Since that I made the PR for a develop-1.1 branch of the server to fix the issue. | ||||||||||||
| Comment by Roman [ 2018-02-12 ] | ||||||||||||
|
Please the review the fix for | ||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-02-14 ] | ||||||||||||
|
Thanks for the commit. I'll review it after 1.1.3 has been released. | ||||||||||||
| Comment by Daniel Lee (Inactive) [ 2018-03-21 ] | ||||||||||||
|
Build verified: 1.1.4-1 source /root/columnstore/mariadb-columnstore-server Merge pull request #104 from mariadb-corporation/davidhilldallas-patch-3 update version /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #427 from mariadb-corporation/ Mcol 1225 - fix mysql/lib library path Reproduced the issue in 1.1.2-1 It was fixed in 1.1.3-2 1.1.4-1 MariaDB [mytest]> SELECT * FROM cs1;
---
--- MariaDB [mytest]> SELECT * FROM cs2;
---
--- MariaDB [mytest]> |