-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Inline strategy cannot support range sharding #4180
Comments
Please help me solve this problem, thank you |
What's your sharding configuration? BTW, Inline strategy only support More detail see documents |
config: If you have a query for the range of columns in a separate table, how will it be configured, such as f_id>= XXX |
You should code a example like : https://github.com/apache/incubator-shardingsphere-example/tree/dev/sharding-jdbc-example/sharding-example/sharding-raw-jdbc-example use |
No, Inline strategy cannot support range sharding. |
@succeo you can use latest version and turn on this feature like this in server.yaml:
|
hi, KimmKing, I got same question, I fllow your way to try execute this sql (SELECT * FROM t_order WHERE order_id BETWEEN ? AND ?) and result is : Cause: java.lang.IllegalStateException: Inline strategy cannot support this type sharding:RangeRouteValue(columnName=order_id, tableName=t_order, valueRange=[472417022777995264‥482417022777995264])] with root causejava.lang.IllegalStateException: Inline strategy cannot support this type sharding:RangeRouteValue(columnName=order_id, tableName=t_order, valueRange=[472417022777995264‥482417022777995264]) by the way ,my sharding-shpere jar version update to 4.1.0, How can i fix this problem ? |
sharding-jdbc version 4.0.0
sql select * from t_account where f_type = 1 and f_id >= 10000 and f_code in ("500","604","685") group by f_code;
An exception occurred during the query.
The text was updated successfully, but these errors were encountered: