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

UPDATE..SET using another table is not updating

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 5.4.1
    • None
    • None
    • 2020-8

    Description

      Build: 595
      artefacts: https://cspkg.s3.amazonaws.com/index.html?prefix=develop-1.5/pull_request/595/centos7/
      pipeline: https://ci.columnstore.mariadb.net/mariadb-corporation/mariadb-columnstore-engine/595/2/7

      Repro:

      CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL) ENGINE=Columnstore;
      INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(2,1),(2,2),(2,3);
      CREATE TABLE t2 (a INT NOT NULL, b INT NOT NULL) ENGINE=Columnstore;
      INSERT INTO t2 VALUES (1,1),(1,2),(1,3);
      UPDATE t1 SET b=(SELECT b FROM t2 ORDER BY b LIMIT 1);
       
      SELECT * FROM t1 ORDER BY a, b;
      

      +---+---+
      | a | b |
      +---+---+
      | 1 | 1 |
      | 1 | 2 |
      | 1 | 3 |
      | 2 | 1 |
      | 2 | 2 |
      | 2 | 3 |
      +---+---+
      6 rows in set (0.024 sec)
      

      Innodb:

      SELECT * FROM t1 ORDER BY a, b;
      

      +---+---+
      | a | b |
      +---+---+
      | 1 | 1 |
      | 1 | 1 |
      | 1 | 1 |
      | 2 | 1 |
      | 2 | 1 |
      | 2 | 1 |
      +---+---+
      6 rows in set (0.000 sec)
      

      Older build 518 results matched with Innodb and so its a regression.

      Attachments

        Activity

          People

            dleeyh Daniel Lee (Inactive)
            bharath.bokka Bharath Bokka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.