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

Different trailing behaviour between columnstore and innodb

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 1.1.5, 1.2
    • Icebox
    • ExeMgr
    • None
    • Tested on Debian 9, MCS 1.1.5

    Description

      Another different behaviour regarding trailing spaces between InnoDB and Columnstore.

      Coliumnstore engine:

      CREATE TABLE `save` (
      `code` varchar(255) DEFAULT NULL
      ) ENGINE=Columnstore DEFAULT CHARSET=utf8
      ;
       
      INSERT INTO save
      VALUES
      ('15 hours '),
      ('14 hours');
       
      select code
      from save
      where code IN ('15 hours ', '14 hours');
      

       select code
        from save
       where code IN ('15 hours ', '14 hours');
      +----------+
      | code     |
      +----------+
      | 14 hours |
      +----------+
      1 row in set, 1 warning (0.08 sec)
      
      

      InnoDB:

      DROP table if exists `save2`;
       
      CREATE TABLE `save2` (
      `code` varchar(255) DEFAULT NULL
      ) ENGINE=Innodb DEFAULT CHARSET=utf8
      ;
       
      INSERT INTO save2
      VALUES
      ('15 hours '),
      ('14 hours');
       
      select code
      from save2
      where code IN ('15 hours ', '14 hours');
      

      select code from save2 where code IN ('15 hours ', '14 hours');
      +-----------+
      | code      |
      +-----------+
      | 15 hours  |
      | 14 hours  |
      +-----------+
      
      

      Attachments

        Issue Links

          Activity

            People

              David.Hall David Hall (Inactive)
              Richard Richard Stracke
              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.