From 789c08ac9d2d233ff5ddc5daec2f289e620bd9f9 Mon Sep 17 00:00:00 2001 From: tristaZero Date: Wed, 9 Jan 2019 20:18:43 +0800 Subject: [PATCH] modify parser-rule.yaml --- sharding-core/src/test/resources/yaml/parser-rule.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sharding-core/src/test/resources/yaml/parser-rule.yaml b/sharding-core/src/test/resources/yaml/parser-rule.yaml index 4ebcfe5686..b4923257f1 100644 --- a/sharding-core/src/test/resources/yaml/parser-rule.yaml +++ b/sharding-core/src/test/resources/yaml/parser-rule.yaml @@ -25,7 +25,9 @@ shardingRule: complex: shardingColumns: user_id, order_id, item_id algorithmClassName: io.shardingsphere.api.algorithm.fixture.TestComplexKeysShardingAlgorithm - keyGeneratorColumnName: item_id + keyGenerator: + keyGeneratorColumnName: order_id + keyGeneratorClassName: io.shardingsphere.core.keygen.DefaultKeyGenerator t_place: actualDataNodes: db${0..1}.t_place tableStrategy: @@ -34,4 +36,5 @@ shardingRule: algorithmClassName: io.shardingsphere.api.algorithm.fixture.TestComplexKeysShardingAlgorithm bindingTables: - t_order, t_order_item - defaultKeyGeneratorClassName: io.shardingsphere.core.keygen.fixture.IncrementKeyGenerator + defaultKeyGenerator: + keyGeneratorType: SNOWFLAKE -- GitLab