diff --git a/examples/init.sql b/examples/init.sql index 4da3d187b..4aa86d09b 100644 --- a/examples/init.sql +++ b/examples/init.sql @@ -1,6 +1,5 @@ -ADD SHARDING RULE r1 COLUMNS w_id; -ADD SHARDING RULE r2 COLUMNS id; -ADD SHARDING RULE r3 COLUMNS bid; -ADD KEY RANGE krid3 FROM 21 ROUTE TO sh2; -ADD KEY RANGE krid2 FROM 11 ROUTE TO sh1; -ADD KEY RANGE krid1 FROM 1 ROUTE TO sh1; +CREATE DISTRIBUTION ds1 COLUMN TYPES integer; + +CREATE KEY RANGE krid3 FROM 21 ROUTE TO sh2 FOR DISTRIBUTION ds1; +CREATE KEY RANGE krid2 FROM 11 ROUTE TO sh1 FOR DISTRIBUTION ds1; +CREATE KEY RANGE krid1 FROM 1 ROUTE TO sh1 FOR DISTRIBUTION ds1;