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 2023/01/04 01:05:08 UTC

[GitHub] [shardingsphere] peilinqian commented on issue #22822: In the federation scenario,the select result data of fetch statement is incorrect.

peilinqian commented on issue #22822:
URL: https://github.com/apache/shardingsphere/issues/22822#issuecomment-1370379067

   ```
   we find java version: java8, full_version=1.8.0_282, full_path=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64/bin/java
   ShardingSphere-5.3.1-SNAPSHOT
   Commit ID: dirty-3c0547ad89f4cc8f55bda9668f1bb68d64e3ba7f
   Commit Message: Update encrypt image (#23299)
   Branch: 3c0547ad89f4cc8f55bda9668f1bb68d64e3ba7f
   Build time: 2023-01-03T18:46:42+0800
   ```
   
   ```
   test_db=> select * from t_new_order o inner join t_merchant m using(merchant_id) where o.user_id > 10 and o.user_id < 15 order by o.order_id, 7 fetch next 3 row only;
   select * from t_new_order o inner join t_merchant m using(merchant_id) where o.user_id > 10 and o.user_id < 15 order by o.order_id, 7 fetch first 3 rows only; merchant_id | order_id | user_id | status | remark |     creation_date     | country_id | merchant_name | business_code |  telephone  |     creation_date
   -------------+----------+---------+--------+--------+-----------------------+------------+---------------+---------------+-------------+-----------------------
              5 |     1100 |      11 | init   | TESt   | 2017-08-08 00:00:00.0 |         86 | lenovo        | 86000005      | 86100000005 | 2017-08-08 00:00:00.0
              6 |     1101 |      11 | init   | test   | 2017-08-08 00:00:00.0 |         86 | moutai        | 86000006      | 86100000006 | 2017-12-08 00:00:00.0
              9 |     1200 |      12 | finish | finish | 2017-08-08 00:00:00.0 |         86 | vivo          | 86000009      | 86100000009 | 2017-11-08 00:00:00.0
   (3 rows)
   
   test_db=> select * from t_new_order o inner join t_merchant m using(merchant_id) where o.user_id > 10 and o.user_id < 15 order by o.order_id, 7 fetch first 3 rows only;
    merchant_id | order_id | user_id | status | remark |     creation_date     | country_id | merchant_name | business_code |  telephone  |     creation_date
   -------------+----------+---------+--------+--------+-----------------------+------------+---------------+---------------+-------------+-----------------------
              5 |     1100 |      11 | init   | TESt   | 2017-08-08 00:00:00.0 |         86 | lenovo        | 86000005      | 86100000005 | 2017-08-08 00:00:00.0
              6 |     1101 |      11 | init   | test   | 2017-08-08 00:00:00.0 |         86 | moutai        | 86000006      | 86100000006 | 2017-12-08 00:00:00.0
              9 |     1200 |      12 | finish | finish | 2017-08-08 00:00:00.0 |         86 | vivo          | 86000009      | 86100000009 | 2017-11-08 00:00:00.0
   (3 rows)
   
   ```


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