使用grouping set后,在加上lateral view explode查询慢

Viewed 2

在doris2.1.8版本上有个单表查询使用grouping set后,在加上lateral view explode查询慢,经过profile文件的分析,底层表扫描数据18万行,我们发现在grouping sets 之后,数据量变成了840万行,fragment的instance_num都是1了,lateral view explode 的算子也是1,所以处理的数据很慢。试着调整过并行度参数也没有,请问有什么办法能优化吗,将grouping sets之后的frament数据大于1呢,

0 Answers