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/10/08 08:46:18 UTC

[GitHub] [shardingsphere] strongduanmu opened a new issue, #21384: Wrong result return when execute openGauss cross join statement

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

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   https://github.com/apache/shardingsphere/commit/e2f2e4491006d7e57615b1926913921e9414b9df
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Execute `SELECT * FROM t_order o CROSS JOIN t_order_item i WHERE o.user_id = 10 ORDER BY o.order_id, 7 LIMIT 10, 10;`, then return correct result.
   
   ```sql
   expected_database=> SELECT * FROM t_order o CROSS JOIN t_order_item i WHERE o.user_id = 10 ORDER BY o.order_id, 7 LIMIT 10, 10;
    order_id | user_id | status | merchant_id | remark | creation_date | item_id | order_id | user_id | product_id | quantity | creation_date 
   ----------+---------+--------+-------------+--------+---------------+---------+----------+---------+------------+----------+---------------
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  120101 |     1201 |      12 |         10 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  120102 |     1201 |      12 |         10 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  130001 |     1300 |      13 |         13 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  130002 |     1300 |      13 |         13 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  130101 |     1301 |      13 |         14 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  130102 |     1301 |      13 |         14 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  140001 |     1400 |      14 |         17 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  140002 |     1400 |      14 |         17 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  140101 |     1401 |      14 |         18 |        1 | 2017-08-08
        1000 |      10 | init   |           1 | test   | 2017-08-08    |  140102 |     1401 |      14 |         18 |        1 | 2017-08-08
   (10 rows)
   ```
   
   ### Actual behavior
   
   Wrong result return.
   
   ```sql
   sharding_db=> SELECT * FROM t_order o CROSS JOIN t_order_item i WHERE o.user_id = 10 ORDER BY o.order_id, 7 LIMIT 10, 10;
    order_id | user_id | status | merchant_id | remark | creation_date | item_id | order_id | user_id | product_id | quantity | creation_date
   ----------+---------+--------+-------------+--------+---------------+---------+----------+---------+------------+----------+---------------
        1001 |      10 | init   |           2 | test   | 2017-08-08    |  100101 |     1001 |      10 |          2 |        1 | 2017-08-08
        1001 |      10 | init   |           2 | test   | 2017-08-08    |  100102 |     1001 |      10 |          2 |        1 | 2017-08-08
        1001 |      10 | init   |           2 | test   | 2017-08-08    |  200001 |     2000 |      20 |          3 |        1 | 2017-08-08
        1001 |      10 | init   |           2 | test   | 2017-08-08    |  200002 |     2000 |      20 |          3 |        1 | 2017-08-08
        1001 |      10 | init   |           2 | test   | 2017-08-08    |  200101 |     2001 |      20 |          4 |        1 | 2017-08-08
        1001 |      10 | init   |           2 | test   | 2017-08-08    |  200102 |     2001 |      20 |          4 |        1 | 2017-08-08
   (6 rows)
   ```
   
   ### 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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #21384: Wrong result return when execute openGauss cross join statement

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #21384:
URL: https://github.com/apache/shardingsphere/issues/21384#issuecomment-1272284054

   Ref #19580.


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


[GitHub] [shardingsphere] tristaZero closed issue #21384: Wrong result return when execute openGauss cross join statement

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #21384: Wrong result return when execute openGauss cross join statement
URL: https://github.com/apache/shardingsphere/issues/21384


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