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

Wrong result of WHERE char1_col='A'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.6.1
    • 5.6.1, 6.1.1
    • PrimProc
    • None
    • 2021-8

    Description

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a CHAR(1) CHARACTER SET latin1) ENGINE=ColumnStore;
      INSERT INTO t1 VALUES ('a'),('Ã');
      SELECT * FROM t1 WHERE a='A';
      

      +------+
      | a    |
      +------+
      | a    |
      +------+
      

      Looks wrong. It should return both rows.

      Note, if I change the data type to CHAR(2), it returns two rows as expected.

      Update

      The problem is also repeatable with CHAR(2):

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a CHAR(2) CHARACTER SET latin1) ENGINE=ColumnStore;
      INSERT INTO t1 VALUES ('aa'),('ÃÃ');
      SELECT * FROM t1 WHERE a='AA';
      

      +------+
      | a    |
      +------+
      | aa   |
      +------+
      

      The expected result should contain return two rows.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.