select 中支持子查询的功能什么时候可以提供支持

Viewed 92

MySQL和Oracle中都提供了selec a.col1,(select t.col1 from t where t.col2=a.col2) from a 或者 select a.col1,sum(if(a.xxid in select id from c),1,0) as 'newCol' from a
我看github上也有类似issue但是不知道此功能的支持什么能够支持上来。

MySQL中可以简化操作:image.png

到了doris中只能用case...when语句,让整个SQL语句的易维护性和可读性都变差
image.png

1 Answers

已记录;当前Doris支持Where 和 Join 子句中的子查询:子查询