### table schema CREATE TABLE `t1` ( `k1` int(11) NULL, `v1` int(11) NULL ) ENGINE=OLAP DUPLICATE KEY(`k1`, `v1`) COMMENT 'OLAP' DISTRIBUTED BY HASH(`k1`) BUCKETS 3 PROPERTIES('replication_num'='1') ### query select k1,count(distinct v1+1) from t1 group by k1; ### error java.lang.ClassCastException: org.apache.doris.planner.OlapScanNode cannot be cast to org.apache.doris.planner.AggregationNode
support distinct count with group by clause. for example: SELECT count(distinct c_custkey + 1) FROM customer group by c_nation; TODO: support distinct count without group by clause.
- add aggregate function max to Nereids - add function P0 regression test for Nereids