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/11/19 09:38:26 UTC

[GitHub] [shardingsphere] RaigorJiang opened a new issue #13702: Add DistSQL to trigger table metadata refresh.

RaigorJiang opened a new issue #13702:
URL: https://github.com/apache/shardingsphere/issues/13702


   Hi community,
   
   We have collected some user requirements. 
   
   >We hope that when using Proxy, we can execute DDL on the physical database (for example, add a column to a table), and then refresh the metadata in the Proxy, so that ShardingSphere can recognize the newly added column.
   
   Such as this issue:
   - https://github.com/apache/shardingsphere/issues/11755
   
   \
   Now, I plan to add a syntax for refreshing table metadata in DistSQL, so that users can control when to trigger the refresh.
   The syntax is as follows:
   1. Refresh metadata of all tables:
   ```sql
   refresh table metadata;
   ```
   2. Refresh metadata of the specified table:
   ```sql
   # from a random resource
   refresh table metadata t_order;
   # From the specified resource
   refresh table metadata t_order from resource ds_0;
   ```
   
   At the same time, `ContextManager` needs to add a new API to really refresh the metadata. @menghaoranss  can you help design the ContextManager interface?


-- 
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 #13702: Add DistSQL to trigger table metadata refresh.

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


   Done. 


-- 
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 #13702: Add DistSQL to trigger table metadata refresh.

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


   Hi @lanchengx ,
   Thanks for your great work, please leave a comment and I will assign this issue to 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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] lanchengx commented on issue #13702: Add DistSQL to trigger table metadata refresh.

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


   > Hi @lanchengx , Thanks for your great work, please leave a comment and I will assign this issue to 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.

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 closed issue #13702: Add DistSQL to trigger table metadata refresh.

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


   


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