tts2 opened a new issue, #27576: URL: https://github.com/apache/shardingsphere/issues/27576
## Question **For English only**, other languages will not accept. 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**. Table Name: `orderinfo` | Column Name | Data Type | Description | |-------------|-------------|----------------------------------------| | order_id | INT | Unique identifier for the order | | order_date | DATE | Date when the order was placed | | amount | DECIMAL(10,2)| Total amount of the order | | order_type | VARCHAR(20) | Type of the order (e.g., sc_2017112116450001, sc_2017112116450002, etc.) | config-sharding.yaml databaseName: restaurant_db dataSources: common_db: url: jdbc:mysql://localhost:3306/restaurant?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 pm_sc_2017112116450001_db: url: jdbc:mysql://localhost:3306/pm_sc_2017112116450001_db?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 pm_sc_2017112116450002_db: url: jdbc:mysql://localhost:3306/pm_sc_2017112116450002_db?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 pm_sc_2017112116460003_db: url: jdbc:mysql://localhost:3306/pm_sc_2017112116460003_db?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 rules: - !SHARDING tables: orderinfo: actualDataNodes: $->{order_type=='sc_2017112116450002'?'pm_sc_2017112116450002_db':'common_db'}.orderinfo tableStrategy: none: defaultDatabaseStrategy: none: defaultTableStrategy: none: Error: `Exception in thread "main" groovy.lang.MissingPropertyException: No such property: order_type for class: Script1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:67) at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:161)` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
