Apache Doris 中文技术论坛
Questions Tags Users Badges

Hash Join 不支持连接条件中使用is null操作符,导致连接查询时使用nested loop join,查询性能下降明显

Asked Jun 14, 2024 Modified Jun 14, 2024
Viewed 70
2.0

详细版本是2.0.2
我业务上想要的效果大概是这样的select * from t1 left join t2 on t1.a= t2.a or (t1.a is null and t2.a is null)
doris目前支持的两种join物理算子hash join和nest loop join,hash join性能好但只支持等值join,能否把is null看成一种特殊的等值查询条件,让我上述场景的sql在查询时可以使用hash join算子。

edited Jun 14, 2024
____3
asked Jun 14, 2024
1 Answers

改成这种的试试:

SELECT * 
FROM  t1 
INNER JOIN  t2 
ON t1.a <=> t2.a;
edited Jan 1, 1970
阿渊@SelectDB (没回帖直接加我主页微信)9580
answered Oct 23, 2024
Related Questions
Doris 2.0.15,3FE、6BE(3BE mix角色 3BE computation角色)3个mix角色的BE节点CPU使用率100%
1 answers
Doris Routine Load自动恢复机制
我的doris版本为2.0.6 在备份操作时,会导致所以fe节点宕机,这种情况该怎么排查,为什么备份会导致这个问题?
1 answers
doris fe节点变更成高可用配置
1 answers
各位大哥在通过k8s安装doris3.0的时候,有没有遇到cg启动不起来,提示Set max number of open file descriptors to a value greater than 60000.
1 answers
doris主键表可以bucket配置太小,怎么修改?
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.