Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22434

UPDATE on RocksDB table with WITHOUT OVERLAPS fails with ER_CONSTRAINT_FAILED

Details

    Description

      install soname 'ha_rocksdb';
      create table t1 (pk int, a int, s date, e date, period for se(s,e), primary key(pk, se without overlaps)) engine=RocksDB;
      insert into t1 values
      (1, 10, DATE '2001-07-27', DATE '2004-07-27'),
      (1, 10, DATE '2004-07-27', DATE '2006-07-27');
      UPDATE t1 SET a = 10 WHERE pk = 1;
      

      10.5 5193c1b5

      mysqltest: At line 6: query 'UPDATE t1 SET a = 10 WHERE pk = 1' failed: 4025: CONSTRAINT `se` failed for `test`.`t1`
      

      The same UPDATE works all right on InnoDB, MyISAM and Aria tables.

      Attachments

        Activity

          nikitamalyavin Nikita Malyavin added a comment - - edited

          the problem is even worse:

          create table t1 (pk int, a int, s date, e date, period for se(s,e), primary key(pk, se without overlaps)) engine=RocksDB;
           
          insert into t1 values (1, 10, DATE '2001-07-27', DATE '2004-06-15');
           
          select * from t1;
           
          pk	a	s	e
          1	10	2001-07-27	2001-07-27
          
          

          it has wrong second value

          nikitamalyavin Nikita Malyavin added a comment - - edited the problem is even worse: create table t1 (pk int , a int , s date , e date , period for se(s,e), primary key (pk, se without overlaps)) engine=RocksDB;   insert into t1 values (1, 10, DATE '2001-07-27' , DATE '2004-06-15' );   select * from t1;   pk a s e 1 10 2001-07-27 2001-07-27 it has wrong second value

          People

            nikitamalyavin Nikita Malyavin
            elenst Elena Stepanova
            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.