wj-li opened a new issue #13415: URL: https://github.com/apache/shardingsphere/issues/13415
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - 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**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? master ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-JDBC ### Expected behavior my select time is 2021-10-30 00:00:00.0 to 2021-10-30 23:59:59.999 ### Actual behavior but it select in table T_DATA_202110、T_DATA_202111 andT_DATA_202112 ### Reason analyze (If you can) ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. ``` T_DATA: actual-data-nodes: ds0.T_DATA_$->{2021}$->{['01','02','03','04','05','06','07','08','09','10','11','12']} table-strategy: standard: sharding-column: START_TIME sharding-algorithm-name: t-data-interval sharding-algorithms: t-fsn-interval: type: INTERVAL props: datetime-pattern: yyyy-MM-dd HH:mm:ss datetime-lower: 2021-01-01 00:00:00 datetime-upper: 2021-12-31 23:59:59 sharding-suffix-pattern: yyyyMM datetime-interval-amount: 1 datetime-interval-unit: MONTHS ``` ``` 2021-11-02 20:21:00,009 INFO Thread-54 o.a.s.i.executor.sql.log.SQLLogger 74 log ---- Logic SQL: SELECT BANK_ID bankId,MACHINE_ID machineId,CURRENCY_NAME currencyName,VALUTA valuta,TF_FLAG tfFlag,VERSION version,COUNT(*) count,SUM(VALUTA) totalAmount FROM T_DATA WHERE start_time >= ? and start_time <= ? and business_id = ? GROUP BY BANK_ID,MACHINE_ID,CURRENCY_NAME,VALUTA,TF_FLAG,VERSION 2021-11-02 20:21:00,009 INFO Thread-54 o.a.s.i.executor.sql.log.SQLLogger 74 log ---- SQLStatement: OracleSelectStatement(lock=Optional.empty, modelSegment=Optional.empty) 2021-11-02 20:21:00,009 INFO Thread-54 o.a.s.i.executor.sql.log.SQLLogger 74 log ---- Actual SQL: ds0 ::: SELECT BANK_ID bankId,MACHINE_ID machineId,CURRENCY_NAME currencyName,VALUTA valuta,TF_FLAG tfFlag,VERSION version,COUNT(*) count,SUM(VALUTA) totalAmount FROM T_DATA_202110 WHERE start_time >= ? and start_time <= ? and business_id = ? GROUP BY BANK_ID,MACHINE_ID,CURRENCY_NAME,VALUTA,TF_FLAG,VERSION ::: [2021-10-30 00:00:00.0, 2021-10-30 23:59:59.999, 1454367539794292737] 2021-11-02 20:21:00,009 INFO Thread-54 o.a.s.i.executor.sql.log.SQLLogger 74 log ---- Actual SQL: ds0 ::: SELECT BANK_ID bankId,MACHINE_ID machineId,CURRENCY_NAME currencyName,VALUTA valuta,TF_FLAG tfFlag,VERSION version,COUNT(*) count,SUM(VALUTA) totalAmount FROM T_DATA_202111 WHERE start_time >= ? and start_time <= ? and business_id = ? GROUP BY BANK_ID,MACHINE_ID,CURRENCY_NAME,VALUTA,TF_FLAG,VERSION ::: [2021-10-30 00:00:00.0, 2021-10-30 23:59:59.999, 1454367539794292737] 2021-11-02 20:21:00,009 INFO Thread-54 o.a.s.i.executor.sql.log.SQLLogger 74 log ---- Actual SQL: ds0 ::: SELECT BANK_ID bankId,MACHINE_ID machineId,CURRENCY_NAME currencyName,VALUTA valuta,TF_FLAG tfFlag,VERSION version,COUNT(*) count,SUM(VALUTA) totalAmount FROM T_DATA_202112 WHERE start_time >= ? and start_time <= ? and business_id = ? GROUP BY BANK_ID,MACHINE_ID,CURRENCY_NAME,VALUTA,TF_FLAG,VERSION ::: [2021-10-30 00:00:00.0, 2021-10-30 23:59:59.999, 1454367539794292737] ``` ### Example codes for reproduce this issue (such as a github link). -- 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]
