[MCOL-639] INSERT LOW_PRIORITY IGNORE INTO .. SELECT for innodb warning Created: 2017-03-24  Updated: 2022-11-05  Resolved: 2022-11-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: MariaDB Server
Affects Version/s: 1.0.8
Fix Version/s: Icebox

Type: Task Priority: Major
Reporter: David Thompson (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None


 Description   

With the following table definitions:

CREATE TABLE `airlines` (
  `iata_code` char(2) NOT NULL,
  `airline` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`iata_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
 
CREATE TABLE `_airlines_new` (
  `iata_code` char(2) NOT NULL,
  `airline` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`iata_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
 
insert into airlines values ('UA', 'United');

insert low priority ignore into select issues a warning referencing a columnstore temp table which shouldn't happen since both tables are innodb.

MariaDB [iflights]> INSERT LOW_PRIORITY IGNORE INTO `iflights`.`_airlines_new` (`iata_code`, `airline`) SELECT `iata_code`, `airline` FROM `iflights`.`airlines`;
Query OK, 14 rows affected, 1 warning (0.01 sec)
Records: 14  Duplicates: 0  Warnings: 1
 
MariaDB [iflights]> show warnings
    -> ;
+-------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Level | Code | Message                                                                                                                                                                                                                                                                                                             |
+-------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Note  | 1051 | Unknown table 'infinidb_vtable.$vtable_21'                                                                                                                                                                                                                                                                          |
| Note  | 1592 | Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. INSERT IGNORE... SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are ignored. This order cannot be predicted and may differ on master and the slave. |
+-------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
 
MariaDB [iflights]> truncate table _airlines_new;
Query OK, 0 rows affected (0.03 sec)
 
MariaDB [iflights]> INSERT LOW_PRIORITY  INTO `iflights`.`_airlines_new` (`iata_code`, `airline`) SELECT `iata_code`, `airline` FROM `iflights`.`airlines`;
Query OK, 14 rows affected (0.00 sec)
Records: 14  Duplicates: 0  Warnings: 0



 Comments   
Comment by Todd Stoffel (Inactive) [ 2022-11-05 ]

This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket.

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