14c088161c
[New Stmt] Support setting replica status manually ( #1522 )
...
Sometimes a replica is broken on BE, but FE does not notice that.
In this case, we have to manually delete that replica on BE.
If there are hundreds of replicas need to be handled, this is a disaster.
So I add a new stmt:
ADMIN SET REPLICA STATUS
which support setting tablet on specified BE as BAD or OK.
2020-03-16 13:42:30 +08:00
c098178f7a
[Index] Implements create drop show index syntax for bitmap index [ #2487 ] ( #2573 )
...
### 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|
+---------+-------------+-----------------+------------+---------+
```
2020-01-03 17:41:26 +08:00