secondchilde opened a new issue #15460:
URL: https://github.com/apache/shardingsphere/issues/15460


   ## sql by nested queries and group by  ,Prompt table does not exist , Table 
splitting failed
   sharding version : 4.1.1
   Slice table : t_scan_task_number
   Slice key : store_id
   
   when i exectuor this sql :
   
   select count(1) from (
           SELECT
           store_id,DATE_FORMAT(scan_time,"%Y%m"),distributor_id
           FROM。t_scan_task_number 
           WHERE 1=1
       and scan_time >= DATE_FORMAT('2022-02-01 00:00:00', '%Y-%m-%d %H:%i:%s' )
           and scan_time <= DATE_FORMAT('2022-02-28 23:59:59', '%Y-%m-%d 
%H:%i:%s' )
           and store_id in (12057,1123)
        
           group by store_id,distributor_id,DATE_FORMAT(scan_time,"%Y%m") order 
by store_id
           asc,DATE_FORMAT(scan_time,"%Y%m") desc ) temp
   
   Prompt: 
   1146 - Table 'db_puxian_promotion.t_scan_task_number' doesn't exist, Time: 
0.013000s
   
   When I add a serial number in the back, it will be executed successfully。 
t_scan_task_number_01
   
   wait for reply,thanks
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - 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**.
   


-- 
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]


Reply via email to