You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:
Actual Behavior
Expected Behavior
No response
Steps to Reproduce
create database t;
use t
drop table if exists t1;
create table t1(a int, b varchar(20), unique key(a));
insert into t1 values(1, '1');
insert into t1 values(1, '1');
select * from t1;
disable all delete/udpate unique key in bvt test. Let CN/DN bvt pass.
A real fix for delete and update.
Re-enable.
The real fix, roughly the idea is the following. Suppose we have
create table T(a int not null primary key, b int unique key);
delete from t where a > 100;
The plan will be
scan t ---> where ----> join -----> delete t and delete uniqidx of t
/|\
scan t uniq key -----|
The delete can be one or two operators.
The join is subject to all reasonable optimization, including bloom filter pushdown and/or choosing index nest loop join
Activity
bbbearxyz commentedon Oct 23, 2022
I will disable the unique index bvt, and when the unique index is fixed, I will enable the bvt
fengttt commentedon Oct 23, 2022
We will do the following,
The real fix, roughly the idea is the following. Suppose we have
create table T(a int not null primary key, b int unique key);
delete from t where a > 100;
The plan will be
The delete can be one or two operators.
The join is subject to all reasonable optimization, including bloom filter pushdown and/or choosing index nest loop join
15 remaining items
bbbearxyz commentedon Dec 23, 2022
The code is finish and wait the pr review.
matrix-meow commentedon Jan 6, 2023
Hello @jiangxinmeng1. The bug issue in the BVT test code has not been removed,issues automatically open.