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/11/02 09:45:06 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-549028027
 
 
   I have some problems: @terrymanu 
   1.when the subquery's TableReferencesContext shoule be extracted,SubqueryPredicateExtractor or TableReferencesExtractor ?
   2. where the subquery's TableReferencesContext should be saved,it can be used when ShardingRouter.route
   ![深度截图_选择区域_20191102173313](https://user-images.githubusercontent.com/10781145/68069164-69e4c480-fd97-11e9-8bf5-e0f56ad54359.png)
   WhereClauseShardingConditionEngine.createShardingConditions 
   ![深度截图_选择区域_20191102173926](https://user-images.githubusercontent.com/10781145/68069190-bfb96c80-fd97-11e9-83fd-53b23e6c4ffe.png)
   tablesContext shoule use subquery's tablesContext
   3.the sql"SELECT * FROM t_order_item WHERE status IN (SELECT status FROM t_order WHERE user_id = 10 AND order_id = 1000)" how to route,by subtable[t_order],or maintable [t_order_item] or [t_order] and [t_order_item] 
   
   thank you!

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