HarrySheep opened a new issue, #14334:
URL: https://github.com/apache/shardingsphere/issues/14334

   ## Question
   
   What happens?
   I'm using sharding-jdbc springboot, trying to perform pagination (with 
PageHelper) with 2 sharding tables (in Oracle).
   The result sets seem like containing all the result I need, but they have 
not been sorted.
   So I wonder if i configure it wrong or what?
   I have searched for it for a long time, but I never found a proper solution.
   
   Here's some configuration and the test code:
   **Maven Dependency:**
   
![image](https://user-images.githubusercontent.com/26380795/147433185-aadbb926-5486-4476-b644-42a1f22cf7b0.png)
   
   **Configuration:**
   
![image](https://user-images.githubusercontent.com/26380795/147434065-e98d6e6f-cc0b-45bc-992b-e2a6d099a1e8.png)
   
   **Sharding Algorithm:**
   Plz ignore it for now. It seems to have nothing to do with this issue.
   
   **Test Code:**
   
![image](https://user-images.githubusercontent.com/26380795/147434346-7913331f-1b38-4d45-9754-8421e48d1dcf.png)
   
   
![image](https://user-images.githubusercontent.com/26380795/147432959-85cb18e5-6731-417c-a92d-94144587c05a.png)
   
   **Mybatis Mapper:**
   
![image](https://user-images.githubusercontent.com/26380795/147432983-db9155de-123f-4727-ab08-2bf0861859d5.png)
   
   **Here's the result sets:**
   
![image](https://user-images.githubusercontent.com/26380795/147434695-1b9ecf6e-fb36-497c-a67b-7f045a3b03d9.png)
   
   **The SQL Log:**
   
![image](https://user-images.githubusercontent.com/26380795/147434138-3356b5d9-2f4f-476b-b696-b778917e2fb7.png)
   
   
   What it appears?
   And above all, we can see that it scanned through 2 tables, 
nfs_push_sent_message and nfs_push_sent_message_2021, and the sql did have the 
"order by STATUS_TIME desc" phase clearly. But still, the "order column" in 
**result sets were not ordered**.
   
   If you need any further information, please contact me at any time. Thank 
for for taking a look at the question.


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