You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/22 07:24:46 UTC

[GitHub] [shardingsphere] strongduanmu opened a new issue #12617: Exception occurs when execute select ... group by statement

strongduanmu opened a new issue #12617:
URL: https://github.com/apache/shardingsphere/issues/12617


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   master branch
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-JDBC or ShardingSphere-Proxy
   
   ### Expected behavior
   
   Execute successfully
   
   ### Actual behavior
   
   ![image](https://user-images.githubusercontent.com/10829171/134300235-d229c6da-7eeb-4b9f-bdcb-0a4dc88f99f5.png)
   
   Does not support `count` and `date` alias. If I modify the alias, new exception occurs.
   
   ![image](https://user-images.githubusercontent.com/10829171/134300416-53ce0c1d-f1d5-4ec3-9015-6dba4e7d0c48.png)
   
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu closed issue #12617: Exception occurs when execute select ... group by statement

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #12617:
URL: https://github.com/apache/shardingsphere/issues/12617


   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #12617: Exception occurs when execute select ... group by statement

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #12617:
URL: https://github.com/apache/shardingsphere/issues/12617#issuecomment-927759653


   Calcite does not support query of aggregate fields that are not in group by, so this problem requires users to modify the SQL by themselves.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org