4c50c4906b
[fix](Nereids) add implicit casting for arithmetic expression ( #15630 )
...
Add implicit casting for arithmetic expression to support select "1" + "2"
2023-01-09 15:10:35 +08:00
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
9d6c199553
[Bug](vec) Fix avg overflow in clickbench ( #12621 )
2022-09-16 14:43:40 +08:00
5b6d48ed5b
[feature](nereids) support distinct count ( #12159 )
...
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.
2022-09-15 13:01:47 +08:00
f737ff742e
[enhancement](Nereids)support max function ( #11795 )
...
- add aggregate function max to Nereids
- add function P0 regression test for Nereids
2022-08-24 10:54:51 +08:00