You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/04/22 03:34:09 UTC
[GitHub] [incubator-doris] yangzhg opened a new issue #3373: disable some syntax of subquey in case when clause
yangzhg opened a new issue #3373:
URL: https://github.com/apache/incubator-doris/issues/3373
for now doris only support binary predict of subquery in case when clause
like
```
SELECT CASE
WHEN (
SELECT COUNT(*) / 2
FROM t
) > k4 THEN (
SELECT AVG(k4)
FROM t
)
ELSE (
SELECT SUM(k4)
FROM t
)
END AS kk4
FROM t;
```
not support `in` or `exists` in subquery like
```
select case when k1 in (select k1 from baseall) then "true" else k1 end a from baseall;
select case k1 when exists (select 1) then "empty" else "p_test" end a from bigtable;
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org