Superainbower edited a comment on issue #11437:
URL:
https://github.com/apache/shardingsphere/issues/11437#issuecomment-895075521
The error log is Function '{fn ifnull}' is not defined
I refer to your suggestion, but you said ss will do it, it make me confused
We need to rewrite the SQL to the following format:
SELECT order_id, {fn IFNULL(SUM(cnt), 0)} AS totoal FROM (
SELECT order_id, user_id, COUNT(1) AS cnt FROM t_order GROUP BY
order_id, user_id
) a GROUP BY order_id;
--
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]