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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to