Skip to content

[Bug]: [CN-DN BVT] unique key doesn't work #5790

Closed

Description

@jiangxinmeng1

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

1

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;

Additional information

No response

Activity

  1. self-assigned this
    on Oct 22, 2022
  2. bbbearxyz commented on Oct 23, 2022

    @bbbearxyz
    Contributor

    I will disable the unique index bvt, and when the unique index is fixed, I will enable the bvt

  3. fengttt commented on Oct 23, 2022

    @fengttt
    Contributor

    We will do the following,

    1. disable all delete/udpate unique key in bvt test. Let CN/DN bvt pass.
    2. A real fix for delete and update.
    3. 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

  4. added
    severity/s0
    and removed on Oct 23, 2022
  5. removed their assignment
    on Oct 24, 2022
  6. added this to the v0.6.0 milestone on Oct 29, 2022
  7. 15 remaining items

  8. bbbearxyz commented on Dec 23, 2022

    @bbbearxyz
    Contributor

    The code is finish and wait the pr review.

  9. Repository owner unassigned on Jan 3, 2023
  10. matrix-meow commented on Jan 6, 2023

    @matrix-meow
    Contributor

    Hello @jiangxinmeng1. The bug issue in the BVT test code has not been removed,issues automatically open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0triage/accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions