Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-639

INSERT LOW_PRIORITY IGNORE INTO .. SELECT for innodb warning

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • 1.0.8
    • Icebox
    • MariaDB Server
    • 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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dthompson David Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.