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/02/23 07:23:35 UTC

[GitHub] [shardingsphere] roodkcab opened a new issue #15579: support multiple schema on same instance

roodkcab opened a new issue #15579:
URL: https://github.com/apache/shardingsphere/issues/15579


   ## Feature Request
   
   ### Is your feature request related to a problem?
   ```
           Preconditions.checkState(schemaNames.size() <= 1, "Can not support multiple different schema.");
   ```
   currently TablesContext will check schema number of select statement and throw exception on multiple schema detected.
   
   ### Describe the feature you would like.
   can we support multiple schema on same instance? for example, sql like below
   ```
   select t1.*, t2.* from test1.test t1, test2.test t2;
   ```
   
   if I comment this check, I can get a "partial correct" result in client side prepare, i.e. using text protocol. but error on server side prepare, due to wrong field schema.
   


-- 
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] roodkcab commented on issue #15579: support multiple schema on same instance

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


   since shardingsphere treat each schema as a separate instance, i.e. test1 and test2 are running on different physic instances, I didn't figure out an easy way to support this feature. any idea?


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