Files
doris/regression-test/data/nereids_syntax_p0/function.out
yinzhijian f209b7ab6e [fix](Nereids) add exchange node check between local and global agg in plan translator (#12913)
### 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
2022-10-25 16:55:29 +08:00

27 lines
312 B
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !max --
10 2959704
-- !min --
7 1705830
-- !max_and_min --
2959704 7
-- !count --
3 3
-- !distinct_count --
1
1
1
-- !distinct_count_group_by_distributed_key --
1303 1
1309 1
1312 1
-- !avg --
5.0 2356811.0