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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]