[MCOL-3406] columnstore can't update multiple tables Created: 2019-07-18  Updated: 2023-07-02  Resolved: 2023-07-02

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: 1.2
Fix Version/s: Icebox

Type: New Feature Priority: Major
Reporter: Richard Stracke Assignee: Todd Stoffel (Inactive)
Resolution: Won't Do Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MCOL-3811 Implement multiple-table UPDATE feature. Closed

 Description   

DROP TABLE if EXISTS `t1` ;
DROP TABLE if EXISTS `t2` ;
CREATE TABLE `t1` (`i` INT NULL) ENGINE = INNODB;
CREATE TABLE `t2` (`i` INT NULL) ENGINE = INNODB;
update t1, t2 SET t1.i = 999 , t2.i = 999 where t1.i = t2.i and t1.i = 1 and t2.i = 1;

throws

/* SQL Error (1178): The storage engine for the table doesn't support IDB-1012: This version of Columnstore supports update of only one table at a time. */

But it works with InnoDB

DROP TABLE if EXISTS `t1` ;
DROP TABLE if EXISTS `t2` ;
CREATE TABLE `t1` (`i` INT NULL) ENGINE = INNODB;
CREATE TABLE `t2` (`i` INT NULL) ENGINE = INNODB;
update t1, t2 SET t1.i = 999 , t2.i = 999 where t1.i = t2.i and t1.i = 1 and t2.i = 1;



 Comments   
Comment by Todd Stoffel (Inactive) [ 2023-07-02 ]

The "create date" on this ticket is pre-convergence with MariaDB server. If the issue still exists in a modern version of the engine/plugin please submit a new ticket.

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