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 2019/10/28 13:27:48 UTC

[GitHub] [incubator-shardingsphere] jiang2015 commented on issue #3382: Throws "Table xxx not found" Exception when subquery's tableName should be rewrited.

jiang2015 commented on issue #3382: Throws "Table xxx not found" Exception when subquery's tableName should be rewrited.
URL: https://github.com/apache/incubator-shardingsphere/issues/3382#issuecomment-546945242
 
 
   I just test by shard-proxy, the log file :
   [INFO ] 21:06:40.638 [ShardingSphere-Command-3] ShardingSphere-SQL - Actual SQL: ds_0 ::: select * from t_order_item_0 where `status` = (select `status` from t_order where user_id = 10 and order_id = 10);
   [INFO ] 21:06:40.655 [epollEventLoopGroup-3-13] o.a.s.s.transport.codec.PacketCodec - Write to client d1084257 : 
             +-------------------------------------------------+
            |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
   +--------+-------------------------------------------------+----------------+
   |00000000| 30 00 00 01 ff 7a 04 23 34 32 53 30 32 54 61 62 |0....z.#42S02Tab|
   |00000010| 6c 65 20 27 64 65 6d 6f 5f 64 73 5f 30 2e 74 5f |le 'demo_ds_0.t_|
   |00000020| 6f 72 64 65 72 27 20 64 6f 65 73 6e 27 74 20 65 |order' doesn't e|
   |00000030| 78 69 73 74                                     |xist            |
   +--------+-------------------------------------------------+----------------+
   
   subquery's tableName isn't rewrited!
   I am glad to analysis the problem,thanks.

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


With regards,
Apache Git Services