mysql列存储引擎-支持COUNT中DISTINCT-需求分析
关联ISSUE: https://github.com/stoneatom/stonedb/issues/928
参考:
https://dev.mysql.com/doc/refman/5.7/en/aggregate-functions.html#function_count-distinct
-
- CREATE TABLE `t1` (
- idx int(11),
- c1 int(11),
- c2 int(11)
- ) ENGINE=TIANMU;
- insert into t1 values (1, 2, 2),
- (1, 2, 3),
- (1, 2, 4),
- (1, 3, 2),
- (4, 3, 4);