You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "zhouyao1994 (via GitHub)" <gi...@apache.org> on 2023/03/24 12:08:59 UTC

[GitHub] [shardingsphere] zhouyao1994 opened a new issue, #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

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

   ## Question
   i want config  a list wiht     [db0.db0    db1.tb1,  db2.tb2] but when i set  actualDataNodes to 
   `db${0,2}.tb${0,2}`
   it genarate a list with
   [    "db0.tb0", "db0.tb1", "db0.tb2",    "db1.tb0", "db1.tb1", "db1.tb2",    "db2.tb0", "db2.tb1", "db2.tb2"]
   
   how can i genarate to db1.tb1,  db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6?
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - 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**.
   


-- 
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] zhouyao1994 commented on issue #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

Posted by "zhouyao1994 (via GitHub)" <gi...@apache.org>.
zhouyao1994 commented on issue #24814:
URL: https://github.com/apache/shardingsphere/issues/24814#issuecomment-1543403025

   > 
   
   ok,thx~


-- 
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] RaigorJiang commented on issue #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24814:
URL: https://github.com/apache/shardingsphere/issues/24814#issuecomment-1483833043

   I think this needs to be enumerated, or you can check the syntax documentation of groovy
   (Expressions are parsed by groovy)
   
   Ref: https://shardingsphere.apache.org/document/current/en/features/sharding/concept/#row-value-expressions


-- 
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] zhouyao1994 closed issue #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

Posted by "zhouyao1994 (via GitHub)" <gi...@apache.org>.
zhouyao1994 closed issue #24814: how to config actualDataNodes to express  db1.tb1,  db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6
URL: https://github.com/apache/shardingsphere/issues/24814


-- 
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] RaigorJiang commented on issue #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24814:
URL: https://github.com/apache/shardingsphere/issues/24814#issuecomment-1507867816

   That's true, if you don't want to enumerate, can you use the same table name in each data source?
   `db${0..6}.tb`


-- 
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] zhouyao1994 commented on issue #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

Posted by "zhouyao1994 (via GitHub)" <gi...@apache.org>.
zhouyao1994 commented on issue #24814:
URL: https://github.com/apache/shardingsphere/issues/24814#issuecomment-1506269720

   > I think this needs to be enumerated, or you can check the syntax documentation of groovy (Expressions are parsed by groovy)
   > 
   > Ref: https://shardingsphere.apache.org/document/current/en/features/sharding/concept/#row-value-expressions
   
   i searched the groovy documentation,but not get more elegent expression


-- 
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] zhouyao1994 commented on issue #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

Posted by "zhouyao1994 (via GitHub)" <gi...@apache.org>.
zhouyao1994 commented on issue #24814:
URL: https://github.com/apache/shardingsphere/issues/24814#issuecomment-1508916848

   > That's true, if you don't want to enumerate, can you use the same table name in each data source? `db${0..6}.tb`
   
   actually ,In some scenarios, I would like the programmers to explicitly specify the table name to avoid any mistakes in writing the database. 


-- 
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] RaigorJiang commented on issue #24814: how to config actualDataNodes to express db1.tb1, db2.tb2 ,db3.tb3, db4.tb4 db5.tb5 db6.tb6

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24814:
URL: https://github.com/apache/shardingsphere/issues/24814#issuecomment-1509859085

   I understand, but it's a pity that there is no better way at present.


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