matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Feature Request]: Support unique index and secondary index

Open domingozhang opened this issue 3 years ago • 2 comments

Is there an existing issue for the same feature request?

  • [X] I have checked the existing issues.

Is your feature request related to a problem?

No response

Describe the feature you'd like

CREATE [UNIQUE] INDEX index_name ON tbl_name (key_part,...) COMMENT 'string'

DROP INDEX index_name

The UNIQUE index needs to removing duplicates.
key_part can be multi columns.

Describe implementation you've considered

No response

Documentation, Adoption, Use Case, Migration Strategy

No response

Additional information

No response

domingozhang avatar Jul 19 '22 13:07 domingozhang

now unique index is completed, please test it.

bbbearxyz avatar Oct 13 '22 07:10 bbbearxyz

this issue now only about unique index, secondary I will implement it in the #3609

bbbearxyz avatar Oct 13 '22 08:10 bbbearxyz

The test finds that the function is only partially implemented, and back to bbbearxyz

heni02 avatar Oct 26 '22 10:10 heni02

will support later

bbbearxyz avatar Nov 09 '22 04:11 bbbearxyz

will fix later

bbbearxyz avatar Nov 18 '22 02:11 bbbearxyz

will fix later

bbbearxyz avatar Nov 22 '22 09:11 bbbearxyz

@iamlinjunhong setups a subtask for connecting the index with delete,select,insert,udpate and create/drop index; @qingxinhome setups a subtask for totally maintains the sematics and implementation of the index

daviszhen avatar Nov 22 '22 11:11 daviszhen

The secondary index will be developed

qingxinhome avatar Jan 03 '23 14:01 qingxinhome

2nd key tracked by https://github.com/matrixorigin/matrixone/issues/3609

fengttt avatar Jan 27 '23 08:01 fengttt