[MCOL-4024] UPDATE counters doesn't work for queries with semi-join Created: 2020-05-28  Updated: 2023-07-02

Status: Open
Project: MariaDB ColumnStore
Component/s: MDB Plugin
Affects Version/s: 1.4.3, 1.5.3
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Roman Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Consider the case

MariaDB [test]> select * from cs1;
+------+
| i    |
+------+
|   45 |
|   45 |
|   45 |
+------+
3 rows in set (1.771 sec)
 
MariaDB [test]> insert into cs1 values (42);
Query OK, 1 row affected (0.078 sec)
 
MariaDB [test]> update cs1 set i = 43 where i in (select i from cs1 where i = 42);
Query OK, 0 rows affected (1.242 sec)
Rows matched: 0  Changed: 0  Warnings: 0
 
MariaDB [test]> select * from cs1;
+------+
| i    |
+------+
|   45 |
|   45 |
|   45 |
|   43 |
+------+
4 rows in set (1.432 sec)

MCS fails to update changed rows counter.



 Comments   
Comment by Roman [ 2020-05-31 ]

It works in 1.4.3.

MariaDB [test]> select * from t1;
+------+
| i    |
+------+
|   41 |
|   41 |
|   41 |
|   41 |
|   41 |
|   41 |
|   41 |
|   41 |
|   41 |
|   44 |
|   42 |
+------+
11 rows in set (0.001 sec)
 
MariaDB [test]> update cs1 set i = 44 where i in (select i from t1 where i = 41);
Query OK, 10 rows affected (0.221 sec)
Rows matched: 10  Changed: 10  Warnings: 0

Generated at Thu Feb 08 02:47:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.