-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not query the new added column #22824
Comments
@TeslaCN Could you help to have a look this issue? |
This is expected behavior. It's recommended to deploy ShardingSphere-JDBC and ShardingSphere-Proxy using cluster mode. Executing DDL to database directly will cause metadata inconsistency. |
It means when I use sharding-jdbc and Is there has any infterface / chance to update the metadata cache ? |
Using Cluster mode could hot reload metadata. There is no such reload method in ShardingSphere-JDBC public API. |
Thanks,By the way,Do you have recommand document for shardingsphere 5.x ? I Have read official doc, But It is not helpful for me. For example, I can not find useful message about |
您好 我已经收到你的邮件,谢谢!HR
|
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
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.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
5.1.0
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
select results contains the column which added just now.
Actual behavior
Not contains.
Reason analyze (If you can)
this parameter cached the table scheam, column names and others, but when add a new column, it is not changed.
Or is any config wrong in my code ?
2.org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSetMetaData#getColumnCount
3.org.apache.shardingsphere.infra.binder.segment.select.projection.impl.ShorthandProjection#actualColumns
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
table
add columnnew_column
varchar(255))new_column
)Example codes for reproduce this issue (such as a github link).
The text was updated successfully, but these errors were encountered: