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 2022/12/14 10:53:30 UTC

[GitHub] [shardingsphere] strongduanmu commented on issue #22826: In the federation scenario,"select order by null first" or "create view order by null first",the result is incorrect;

strongduanmu commented on issue #22826:
URL: https://github.com/apache/shardingsphere/issues/22826#issuecomment-1350910592

   When I test with master branch, the select result is as following:
   
   ```sql
   sharding_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 remark nulls first,1,2,3;
    merchant_id | order_id | user_id | status | remark | creation_date | country_id | merchant_name | business_code |  telephone  | creation_date
   -------------+----------+---------+--------+--------+---------------+------------+---------------+---------------+-------------+---------------
             13 |     1300 |      13 | finish |        | 2017-08-18    |          1 | amazon        | 01000013      | 01100000013 | 2017-08-08
             17 |     1400 |      14 | init   |        | 2017-08-18    |          1 | johnson       | 01000017      | 01100000017 | 2017-08-08
             14 |     1301 |      13 | finish | TEST01 | 2017-08-18    |          1 | apple         | 01000014      | 01100000014 | 2017-07-08
              5 |     1100 |      11 | init   | TESt   | 2017-08-08    |         86 | lenovo        | 86000005      | 86100000005 | 2017-08-08
              9 |     1200 |      12 | finish | finish | 2017-08-08    |         86 | vivo          | 86000009      | 86100000009 | 2017-11-08
              6 |     1101 |      11 | init   | test   | 2017-08-08    |         86 | moutai        | 86000006      | 86100000006 | 2017-12-08
             18 |     1401 |      14 | init   | test   | 2017-08-18    |          1 | intel         | 01000018      | 01100000018 | 2017-06-08
             10 |     1201 |      12 | finish | test22 | 2017-08-18    |         86 | oppo          | 86000010      | 86100000010 | 2017-08-08
   (8 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