@@ -1378,22 +1378,6 @@ ERROR: AT clause cannot contain all values in partition "fb"
alter table mpp3588 split partition for(1) at (1,2) into (partition f7a, partition f7b);
ERROR: AT clause cannot contain all values in partition "fb"
drop table mpp3588;
-- MPP-3692, MPP-3679
create table mpp3679 (a text, b text) partition by list (a) (partition foo values ('foo'), partition bar values ('bar'), default partition baz);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
NOTICE: CREATE TABLE will create partition "mpp3679_1_prt_foo" for table "mpp3679"
NOTICE: CREATE TABLE will create partition "mpp3679_1_prt_bar" for table "mpp3679"
NOTICE: CREATE TABLE will create partition "mpp3679_1_prt_baz" for table "mpp3679"
insert into mpp3679 values ('foo', 'blah');
insert into mpp3679 values ('bar', 'blah');
insert into mpp3679 values ('baz', 'blah');
alter table mpp3679 split default partition at ('baz') into (partition bing, default partition);
NOTICE: exchanged partition "baz" of relation "mpp3679" with relation "pg_temp_1285474"
NOTICE: dropped partition "baz" for relation "mpp3679"
NOTICE: CREATE TABLE will create partition "mpp3679_1_prt_bing" for table "mpp3679"
NOTICE: CREATE TABLE will create partition "mpp3679_1_prt_baz" for table "mpp3679"
drop table mpp3679;
-- MPP-3691, MPP-3681
create table mpp3681 (id int, date date, amt decimal(10,2)) distributed by (id) partition by range(date) (start (date '2008-01-01') inclusive end ('2008-04-01') exclusive every (interval '1 month'));
NOTICE: CREATE TABLE will create partition "mpp3681_1_prt_1" for table "mpp3681"
@@ -3029,16 +3029,21 @@ NOTICE: CREATE TABLE will create partition "mpp3621_1_prt_a8" for table "mpp362
alter table mpp3621 add partition a9 start ('2007-06-01') end ('2007-07-01');
NOTICE: CREATE TABLE will create partition "mpp3621_1_prt_a9" for table "mpp3621"
drop table mpp3621;
-- Check for MPP-3679
create table list_test (a text, b text) partition by list (a) (partition foo
values ('foo'), partition bar values ('bar'), default partition baz);
-- Check for MPP-3679 and MPP-3692
create table list_test (a text, b text) partition by list (a) (
partition foo values ('foo'),
partition bar values ('bar'),
default partition baz);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
NOTICE: CREATE TABLE will create partition "list_test_1_prt_foo" for table "list_test"
NOTICE: CREATE TABLE will create partition "list_test_1_prt_bar" for table "list_test"
NOTICE: CREATE TABLE will create partition "list_test_1_prt_baz" for table "list_test"
alter table list_test split default partition at ('baz') into (partition bing,
default partition);
insert into list_test values ('foo', 'blah');
insert into list_test values ('bar', 'blah');
insert into list_test values ('baz', 'blah');
alter table list_test split default partition at ('baz')
into (partition bing, default partition);
NOTICE: exchanged partition "baz" of relation "list_test" with relation "pg_temp_4028238"
NOTICE: dropped partition "baz" for relation "list_test"
NOTICE: CREATE TABLE will create partition "list_test_1_prt_bing" for table "list_test"
@@ -3032,16 +3032,21 @@ NOTICE: CREATE TABLE will create partition "mpp3621_1_prt_a8" for table "mpp362
alter table mpp3621 add partition a9 start ('2007-06-01') end ('2007-07-01');
NOTICE: CREATE TABLE will create partition "mpp3621_1_prt_a9" for table "mpp3621"
drop table mpp3621;
-- Check for MPP-3679
create table list_test (a text, b text) partition by list (a) (partition foo
values ('foo'), partition bar values ('bar'), default partition baz);
-- Check for MPP-3679 and MPP-3692
create table list_test (a text, b text) partition by list (a) (
partition foo values ('foo'),
partition bar values ('bar'),
default partition baz);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
NOTICE: CREATE TABLE will create partition "list_test_1_prt_foo" for table "list_test"
NOTICE: CREATE TABLE will create partition "list_test_1_prt_bar" for table "list_test"
NOTICE: CREATE TABLE will create partition "list_test_1_prt_baz" for table "list_test"
alter table list_test split default partition at ('baz') into (partition bing,
default partition);
insert into list_test values ('foo', 'blah');
insert into list_test values ('bar', 'blah');
insert into list_test values ('baz', 'blah');
alter table list_test split default partition at ('baz')
into (partition bing, default partition);
NOTICE: exchanged partition "baz" of relation "list_test" with relation "pg_temp_4028238"
NOTICE: dropped partition "baz" for relation "list_test"
NOTICE: CREATE TABLE will create partition "list_test_1_prt_bing" for table "list_test"