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

UPDATE..SET using another table is not updating

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 5.4.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      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

            Assignee:
            dleeyh Daniel Lee
            Reporter:
            bharath.bokka Bharath Bokka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration