Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
visill committed Sep 26, 2024
1 parent 79050dc commit 7151d10
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/regress/expected/local_distribution.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Creates db on coordinator shard without distributing
CREATE TABLE local_table (asd Int) DISTRIBUTED LOCAL;
EXPLAIN SELECT * FROM local_table;
QUERY PLAN
----------------------------------------------------------------
Seq Scan on local_table (cost=0.00..106.30 rows=9630 width=4)
Optimizer: Postgres query optimizer
(2 rows)

1 change: 1 addition & 0 deletions src/test/regress/parallel_schedule
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# By convention, we put no more than twenty tests in any one parallel group;
# this limits the number of connections needed to run the tests.
# ----------
test: local_distribution

# run tablespace by itself, and first, because it forces a checkpoint;
# we'd prefer not to have checkpoints later in the tests because that
Expand Down
1 change: 1 addition & 0 deletions src/test/regress/serial_schedule
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# src/test/regress/serial_schedule
# This should probably be in an order similar to parallel_schedule.
test: local_distribution
test: tablespace
test: boolean
test: char
Expand Down
5 changes: 5 additions & 0 deletions src/test/regress/sql/local_distribution.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Creates db on coordinator shard without distributing

CREATE TABLE local_table (asd Int) DISTRIBUTED LOCAL;

EXPLAIN SELECT * FROM local_table;

0 comments on commit 7151d10

Please sign in to comment.