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 2021/04/15 02:22:43 UTC

[GitHub] [shardingsphere] xianshun163 opened a new issue #10092: Subquery does not support as

xianshun163 opened a new issue #10092:
URL: https://github.com/apache/shardingsphere/issues/10092


   ## Bug Report
   A simple example:  
   select  o.id  from   ( select  order_id as id   from t_order ) o;
   
   In  our business code,   It is used very frequently. 
   
   It  is  that  any suggestions,  how    to   support  it ? 
   
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - 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**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ### Expected behavior
   
   ### Actual behavior
   
   ### 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.

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



[GitHub] [shardingsphere] xianshun163 commented on issue #10092: Subquery does not support as

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


   I  use the  master branches  code.


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

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



[GitHub] [shardingsphere] xianshun163 commented on issue #10092: Subquery does not support as

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


   > > select o.id from ( select order_id as id from t_order ) o;
   > 
   > @xianshun163 Hi is there any exception?
   
   
   


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10092: Subquery does not support as

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


   Hi @xianshun163 ,
   Thanks for your feedback, looks valuable.
   
   @strongduanmu , could you have a look at this  one? 
   It seems we do not prepare the correct query header due to the metadata of a subquery.


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10092: Subquery does not support as

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


   Hey, welcome. :) The beta release is under preparation now. WeChat ID `ss_assistant_1` will guide you to enter WeChat group.


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10092: Subquery does not support as

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


   > select o.id from ( select order_id as id from t_order ) o;
   
   @xianshun163 Hi is there any exception?


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10092: Subquery does not support as

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


   @xianshun163 So is that a potential bug?


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

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



[GitHub] [shardingsphere] strongduanmu commented on issue #10092: Subquery does not support as

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


   @xianshun163 This exception is fixed by #10582. The following is the result of the latest code execution.
   
   ```
   mysql> select o.id from ( select order_id as id from t_order ) o;
   +-----+
   | id  |
   +-----+
   |   2 |
   |   4 |
   |   6 |
   |   8 |
   |  59 |
   | 100 |
   |   1 |
   |   3 |
   |   5 |
   |   7 |
   |  11 |
   +-----+
   11 rows in set (1.01 sec)
   ```


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

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



[GitHub] [shardingsphere] strongduanmu closed issue #10092: Subquery does not support as

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #10092:
URL: https://github.com/apache/shardingsphere/issues/10092


   


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

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



[GitHub] [shardingsphere] xianshun163 commented on issue #10092: Subquery does not support as

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


   Hi,  I use the shardingsphere proxy,    and  this is the  msg :
   
   [ERROR] 2021-04-15 19:19:08.792 [ShardingSphere-Command-22] o.a.s.p.f.c.CommandExecutorTask - Exception occur: 
   java.lang.NullPointerException: null
   	at org.apache.shardingsphere.proxy.backend.response.header.query.impl.QueryHeaderBuilder.build(QueryHeaderBuilder.java:77)
   	at org.apache.shardingsphere.proxy.backend.response.header.query.impl.QueryHeaderBuilder.build(QueryHeaderBuilder.java:64)
   	at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.createQueryHeader(DatabaseCommunicationEngine.java:123)
   	at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.createQueryHeaders(DatabaseCommunicationEngine.java:115)
   	at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.processExecuteQuery(DatabaseCommunicationEngine.java:106)
   	at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.execute(DatabaseCommunicationEngine.java:101)
   	at org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.execute(SchemaAssignedDatabaseBackendHandler.java:55)
   	at org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:57)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:93)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:71)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)


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

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



[GitHub] [shardingsphere] xianshun163 commented on issue #10092: Subquery does not support as

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


   @tristaZero   do you know  when  the  5.0.0-beta    will  publish?  
   I  am testing  the  master branch code ,and  want to use to the production。 
   In addition, is that   still have  a  wechat group ?


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

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