Skip to content

Commit

Permalink
Fixed hash regression test (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs authored Feb 15, 2024
1 parent cbc1af6 commit 5dd6c7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/regress/tests/console/expected/hash.out
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ CREATE DISTRIBUTION ds1 COLUMN TYPES integer;
created distribution with id ds1
(1 row)

CREATE SHARDING RULE hash1 COLUMNS col1 HASH FUNCTION IDENT FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash1 DISTRIBUTED KEY col1 HASH FUNCTION IDENT FOR DISTRIBUTION ds1;
add sharding rule
-----------------------------------------------------------------------------------------------
created sharding rule hash1 for table (*) with columns [col1, hash: x->x] in ds1 distribution
(1 row)

CREATE SHARDING RULE hash2 COLUMNS col2 HASH FUNCTION IDENTITY FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash2 DISTRIBUTED KEY col2 HASH FUNCTION IDENTITY FOR DISTRIBUTION ds1;
add sharding rule
-----------------------------------------------------------------------------------------------
created sharding rule hash2 for table (*) with columns [col2, hash: x->x] in ds1 distribution
(1 row)

CREATE SHARDING RULE hash3 COLUMNS col3 HASH FUNCTION MURMUR HASH FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash3 DISTRIBUTED KEY col3 HASH FUNCTION MURMUR HASH FOR DISTRIBUTION ds1;
add sharding rule
-------------------------------------------------------------------------------------------------
created sharding rule hash3 for table (*) with columns [col3, hash: murmur] in ds1 distribution
(1 row)

CREATE SHARDING RULE hash4 COLUMNS col4 HASH FUNCTION CITY HASH FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash4 DISTRIBUTED KEY col4 HASH FUNCTION CITY HASH FOR DISTRIBUTION ds1;
add sharding rule
-----------------------------------------------------------------------------------------------
created sharding rule hash4 for table (*) with columns [col4, hash: city] in ds1 distribution
Expand Down
8 changes: 4 additions & 4 deletions test/regress/tests/console/sql/hash.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CREATE DISTRIBUTION ds1 COLUMN TYPES integer;
CREATE SHARDING RULE hash1 COLUMNS col1 HASH FUNCTION IDENT FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash2 COLUMNS col2 HASH FUNCTION IDENTITY FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash3 COLUMNS col3 HASH FUNCTION MURMUR HASH FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash4 COLUMNS col4 HASH FUNCTION CITY HASH FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash1 DISTRIBUTED KEY col1 HASH FUNCTION IDENT FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash2 DISTRIBUTED KEY col2 HASH FUNCTION IDENTITY FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash3 DISTRIBUTED KEY col3 HASH FUNCTION MURMUR HASH FOR DISTRIBUTION ds1;
CREATE SHARDING RULE hash4 DISTRIBUTED KEY col4 HASH FUNCTION CITY HASH FOR DISTRIBUTION ds1;

SHOW sharding_rules;

Expand Down

0 comments on commit 5dd6c7c

Please sign in to comment.