dbzzzzz opened a new issue #10564: URL: https://github.com/apache/shardingsphere/issues/10564
## Bug Report ### Which version of ShardingSphere did you use? ShardingSphere 5 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-Proxy ### Expected behavior select sum(distinct user_id),sum(order_id) from t_order; should return correct result. ### Actual behavior mysql> select sum(distinct user_id),sum(order_id) from t_order; ERROR 1140 (42000): In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'testdb_0.t_order_0.user_id'; this is incompatible with sql_mode=only_full_group_by ### 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. For queries about this service, please contact Infrastructure at: [email protected]
