yangzhg opened a new pull request #2573: implements create drop show index 
syntax for bitmap index [#2487]
URL: https://github.com/apache/incubator-doris/pull/2573
 
 
   ## support for syntax
   ### create table with index 
   ```
   CREATE TABLE table1
   (
       siteid INT DEFAULT '10',
       citycode SMALLINT,
       username VARCHAR(32) DEFAULT '',
       pv BIGINT SUM DEFAULT '0',
       INDEX index_name [USING BITMAP] (siteid, citycode) COMMENT 'balabala'
   )
   AGGREGATE KEY(siteid, citycode, username)
   DISTRIBUTED BY HASH(siteid) BUCKETS 10
   PROPERTIES("replication_num" = "1");
   ```
   ### create index 
   ```
   CREATE INDEX index_name  ON table1 (siteid, citycod) [USING BITMAP] COMMENT 
'balabala';
   or 
   ALTER TABLE table1 ADD  INDEX index_name  [USING BITMAP] (siteid, citycod) 
COMMENT 'balabala';
   ```
   ### drop index
   ```
   DROP INDEX index_name ON table1;
   or
   ALTER TABLE table1 DROP INDEX index_name 
   ```
   
   ### show index
   ```
   SHOW INDEX[ES] FROM table1
   ```
   output
   ```
   +---------+-------------+-----------------+------------+---------+
   | Table   | Index_name  | Column_name     | Index_type | Comment |
   +---------+-------------+-----------------+------------+---------+
   | table1  | index_name  | siteid,citycode | BITMAMP    | balabala|
   +---------+-------------+-----------------+------------+---------+
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to