warriorsliuz opened a new issue #13698: URL: https://github.com/apache/shardingsphere/issues/13698
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? SS 5.0 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-JDBC ### Expected behavior ### Actual behavior java.sql.SQLException:Error while preparing seatment SELECT dd.FullDateAlternateKey dataTime, IFNULL(rr.innum,0) innum, IFNULL(rr.jkl,0.00) jkl FROM dimdate dd LEFT JOIN (SELECT SUM(rsd.innum) innum,ROUND(SUM(rsd.innum)/SUM(rsd.area),2) jkl,rsd.datatime datatime FROM report_site_day rsd LEFT JOIN site_relation sr ON sr.childId=rsd.relationId LEFT JOIN project_status ps ON rsd.relationId=ps.site_id LEFT JOIN site_all_info sai ON rsd.relationId=sai.SiteId LEFT JOIN privilege_userssite AS pu ON pu.sitekey = sai.siteid LEFT JOIN userinsmallprogram AS us ON us.userid = pu.userid WHERE us.openid = ? AND sr.id =? AND ps.status=1 AND rsd.dataTime BETWEEN ? AND ? GROUP BY rsd.datatime )rr ON dd.FullDateAlternateKey=rr.datatime WHERE dd.FullDateAlternateKey BETWEEN ? AND ? ORDER BY dd.FullDateAlternateKey ASC ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
