adding column storage table does not support partition detection
Signed-off-by: yujiang <wutheringwind@163.com>
This commit is contained in:
@ -680,6 +680,13 @@ static void CheckCStoreUnsupportedFeature(CreateStmt* stmt)
|
||||
errdetail("cstore/timeseries don't support relation defination with inheritance.")));
|
||||
}
|
||||
|
||||
if (stmt->partTableState && stmt->partTableState->intervalPartDef) {
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("Unsupport feature"),
|
||||
errdetail("cstore/timeseries don't support interval partition type.")));
|
||||
}
|
||||
|
||||
/* Check constraints */
|
||||
ListCell* lc = NULL;
|
||||
foreach (lc, stmt->tableEltsDup) {
|
||||
|
||||
@ -181,6 +181,21 @@ select relname, parttype, partstrategy, boundaries from pg_partition
|
||||
--clean up
|
||||
drop table interval_normal_date;
|
||||
|
||||
--
|
||||
---- the cstore table does not support interval partition;
|
||||
--
|
||||
create table partiton_table_001(
|
||||
COL_1 smallint,
|
||||
COL_2 char(30),
|
||||
COL_3 int,
|
||||
COL_4 date not null
|
||||
)with (orientation = column)
|
||||
PARTITION BY RANGE (COL_4)
|
||||
INTERVAL ('1 month')
|
||||
(
|
||||
PARTITION partiton_table_001_p1 VALUES LESS THAN ('2020-03-01')
|
||||
);
|
||||
|
||||
--
|
||||
---- tablespace
|
||||
--
|
||||
|
||||
@ -388,6 +388,22 @@ select relname, parttype, partstrategy, boundaries from pg_partition
|
||||
--clean up
|
||||
drop table interval_normal_date;
|
||||
--
|
||||
---- the cstore table does not support interval partition;
|
||||
--
|
||||
create table partiton_table_001(
|
||||
COL_1 smallint,
|
||||
COL_2 char(30),
|
||||
COL_3 int,
|
||||
COL_4 date not null
|
||||
)with (orientation = column)
|
||||
PARTITION BY RANGE (COL_4)
|
||||
INTERVAL ('1 month')
|
||||
(
|
||||
PARTITION partiton_table_001_p1 VALUES LESS THAN ('2020-03-01')
|
||||
);
|
||||
ERROR: Unsupport feature
|
||||
DETAIL: cstore/timeseries don't support interval partition type.
|
||||
--
|
||||
---- tablespace
|
||||
--
|
||||
--date
|
||||
|
||||
Reference in New Issue
Block a user