You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/11/09 04:28:00 UTC
[GitHub] [incubator-pinot] fx19880617 commented on pull request #6249: Adding support of logical functions AND and OR
fx19880617 commented on pull request #6249:
URL: https://github.com/apache/incubator-pinot/pull/6249#issuecomment-723746482
> Thanks for working on this. Does it support parentheses in the expressions like below?
>
> ```
> CASE WHEN ( a > 0 OR b < 10) AND c > 5 THEN 10 ELSE 0 END
> ```
Yes. Tested query like:
```
SELECT
numberOfGames,
CASE
WHEN (numberOfGames >= 50 OR (numberOfGames < 30 AND numberOfGames >= 10)) THEN 5
WHEN numberOfGames >= 40 THEN 4
ELSE 0
END AS columnA
FROM baseballStats
```
----------------------------------------------------------------
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@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org