-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a config for arbitrary config tests where all the tables are null…
- Loading branch information
1 parent
8d370f8
commit be3f83d
Showing
5 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ALTER FUNCTION create_distributed_table RENAME TO create_distributed_table_internal; | ||
CREATE OR REPLACE FUNCTION pg_catalog.create_distributed_table(table_name regclass, | ||
distribution_column text, | ||
distribution_type citus.distribution_type DEFAULT 'hash', | ||
colocate_with text DEFAULT 'default', | ||
shard_count int DEFAULT NULL) | ||
RETURNS void | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
PERFORM create_distributed_table_internal(table_name, NULL, NULL, colocate_with, NULL); | ||
END; | ||
$function$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test: null_dist_key_prep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ALTER FUNCTION create_distributed_table RENAME TO create_distributed_table_internal; | ||
|
||
CREATE OR REPLACE FUNCTION pg_catalog.create_distributed_table(table_name regclass, | ||
distribution_column text, | ||
distribution_type citus.distribution_type DEFAULT 'hash', | ||
colocate_with text DEFAULT 'default', | ||
shard_count int DEFAULT NULL) | ||
RETURNS void | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
PERFORM create_distributed_table_internal(table_name, NULL, NULL, colocate_with, NULL); | ||
END; | ||
$function$; |