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

"ORDER BY BINARY a" is not like in InnoDB

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.4.3
    • 5.5.2
    • PrimProc
    • None
    • 2021-1

    Description

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a VARCHAR(32) CHARACTER SET latin1) ENGINE=InnoDB;
      INSERT INTO t1 VALUES ('A'),('A ');
      SELECT QUOTE(a) FROM t1 ORDER BY a, BINARY(a) DESC;
      

      +----------+
      | QUOTE(a) |
      +----------+
      | 'A '     |
      | 'A'      |
      +----------+
      

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a VARCHAR(32) CHARACTER SET latin1) ENGINE=ColumnStore;
      INSERT INTO t1 VALUES ('A'),('A ');
      SELECT QUOTE(a) FROM t1 ORDER BY a, BINARY(a) DESC;
      

      +----------+
      | QUOTE(a) |
      +----------+
      | 'A'      |
      | 'A '     |
      +----------+
      

      Notice, ColumnStore returns the two records in reverse order.

      Attachments

        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.