snleee opened a new issue, #11569: URL: https://github.com/apache/pinot/issues/11569
Working properly: ``` SELECT CASE WHEN O_CUSTKEY > 10000 THEN 1 WHEN O_CUSTKEY > 20000 THEN 2 ELSE 3 END AS cust, COUNT(*) as count FROM bigQuerySql1 GROUP BY CASE WHEN O_CUSTKEY > 10000 THEN 1 WHEN O_CUSTKEY > 20000 THEN 2 ELSE 3 END LIMIT 100 SELECT CASE WHEN O_CUSTKEY > 10000 THEN 1 WHEN O_CUSTKEY > 20000 THEN 2 ELSE 3 END AS cust, COUNT(*) as count FROM bigQuerySql1 GROUP BY cust LIMIT 100 ``` Not working: ``` SELECT CASE WHEN O_CUSTKEY > 10000 THEN 1 WHEN O_CUSTKEY > 20000 THEN 2 ELSE 3 END AS cust, COUNT(*) as count FROM bigQuerySql1 GROUP BY CASE WHEN O_CUSTKEY > 10000 THEN 1 WHEN O_CUSTKEY > 20000 THEN 2 ELSE 3 END AS cust LIMIT 100 ``` -- 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. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org