wangtiewu commented on issue #24286:
URL:
https://github.com/apache/shardingsphere/issues/24286#issuecomment-1439323425
Hi,@strongduanmu,
configuration:
mode:
type: Standalone
repository:
type: JDBC
dataSources:
ds-0:
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
driverClassName: com.mysql.jdbc.Driver
jdbcUrl:
jdbc:mysql://127.0.0.1:33306/zs_test?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
username: zs
password: xxxxx
rules:
- !SHARDING
tables:
T_TAG:
actualDataNodes: ds-0.T_TAG
tableStrategy:
complex:
shardingColumns: vendor_seq,product_seq
shardingAlgorithmName: tagShardingAlgorithm
shardingAlgorithms:
tagShardingAlgorithm:
type: class_based
props:
strategy: complex
algorithmClassName: comxxxx.zs.core.service.tag.TagShardingAlgorithm
props:
sql-show: true
sql-federation-enabled: true
tabel T_BATCH: batch_id is PRIMARY KEY,it has total 37 columns.
init sql:SELECT a.* FROM T_BATCH a INNER JOIN (SELECT batch_id FROM T_BATCH
ORDER BY UPDATED_TIME DESC LIMIT ?, ?) AS a_b ON a.batch_id = a_b.batch_id
database:mysql5.6.
os:win10
java8
--
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]