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/09/18 01:58:21 UTC
[GitHub] [shardingsphere] CrackerSuperior opened a new issue #12534: Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'inlineShardingStrategy' on class: org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration
CrackerSuperior opened a new issue #12534:
URL: https://github.com/apache/shardingsphere/issues/12534
This is my configuration:
```
schemaName: sqltest
dataSources:
sqltest_0:
url: jdbc:mysql://172.18.40.129:3306/sqltest?serverTimezone=UTC&useSSL=false
username: pcloud
password: pcloud
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
sqltest_1:
url: jdbc:mysql://172.18.40.131:3306/sqltest?serverTimezone=UTC&useSSL=false
username: pcloud
password: pcloud
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
sqltest_2:
url: jdbc:mysql://172.18.40.164:3306/sqltest?serverTimezone=UTC&useSSL=false
username: pcloud
password: pcloud
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
rules:
- !SHARDING
tables:
t_sql:
actualDataNodes: sqltest_${0..2}.t_sql
keyGenerateStrategy:
column: user_id
keyGeneratorName: snowflake
t_sql2:
actualDataNodes: sqltest_${0..2}.t_sql2_${0..1}
tableStrategy:
standard:
shardingColumn: sql2_id
shardingAlgorithmName: sql2_inline
keyGenerateStrategy:
column: user_id
keyGeneratorName: snowflake
bindingTables:
- t_sql,t_sql2
inlineShardingStrategy:
allow-range-query-with-inline-sharding: true
defaultDatabaseStrategy:
standard:
shardingColumn: sql_id
shardingAlgorithmName: database_inline
defaultTableStrategy:
none:
shardingAlgorithms:
database_inline:
type: INLINE
props:
algorithm-expression: sqltest_${sql_id % 3}
sql2_inline:
type: INLINE
props:
algorithm-expression: t_sql2_${sql2_id % 2}
keyGenerators:
snowflake:
type: SNOWFLAKE
props:
worker-id: 123
```
so,how do I use allow-range-query-with-inline-sharding?thanks
--
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] CrackerSuperior commented on issue #12534: Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'inlineShardingStrategy' on class: org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #12534:
URL: https://github.com/apache/shardingsphere/issues/12534#issuecomment-922161964
And My version is 5.0.0-RC1
--
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] tristaZero commented on issue #12534: Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'inlineShardingStrategy' on class: org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #12534:
URL: https://github.com/apache/shardingsphere/issues/12534#issuecomment-922709340
Hi @CrackerSuperior If this issue was fixed, could you 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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #12534: Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'inlineShardingStrategy' on class: org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #12534:
URL: https://github.com/apache/shardingsphere/issues/12534#issuecomment-922163153
Hi @CrackerSuperior, here is an example:
https://github.com/apache/shardingsphere/blob/master/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/resources/config/config-federate.yaml
--
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] CrackerSuperior closed issue #12534: Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'inlineShardingStrategy' on class: org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration
Posted by GitBox <gi...@apache.org>.
CrackerSuperior closed issue #12534:
URL: https://github.com/apache/shardingsphere/issues/12534
--
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] tristaZero edited a comment on issue #12534: Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'inlineShardingStrategy' on class: org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration
Posted by GitBox <gi...@apache.org>.
tristaZero edited a comment on issue #12534:
URL: https://github.com/apache/shardingsphere/issues/12534#issuecomment-922709340
Hi @CrackerSuperior If this issue was fixed, could you close it?
Thanks @RaigorJiang
--
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] CrackerSuperior commented on issue #12534: Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'inlineShardingStrategy' on class: org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #12534:
URL: https://github.com/apache/shardingsphere/issues/12534#issuecomment-922163663
> 嗨@CrackerSuperior,这是一个例子:[https](https://github.com/apache/shardingsphere/blob/master/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/resources/config/config-federate.yaml) :
> [//github.com/apache/shardingsphere/blob/master/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/resources/config/config-federate.yaml](https://github.com/apache/shardingsphere/blob/master/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/resources/config/config-federate.yaml)
That's great. Thank 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