Tanya-W opened a new pull request, #21972:
URL: https://github.com/apache/doris/pull/21972
## Proposed changes
support the same column create different type index with different index
name.
such like:
- create table with index:
```
CREATE TABLE table1
(
id INT DEFAULT '10',
name VARCHAR(32) DEFAULT '',
INDEX index_1 (name) USING BITMAP COMMENT 'bitmap index',
INDEX index_2 (name) USING INVERTED PROPERTIES("parser" = "english")
COMMENT 'inverted index',
)
DUPLICATE KEY(id)
DISTRIBUTED BY HASH(id) BUCKETS 10
PROPERTIES("replication_num" = "1");
```
- alter add index:
```
CREATE INDEX index_1 ON table1 (name) USING BITMAP COMMENT 'bitmap index';
CREATE INDEX index_2 ON table1 (name) USING INVERTED PROPERTIES("parser" =
"english") COMMENT 'inverted index';
```
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]