obclient [test3]> CREATE TABLE t20(col1 VARCHAR(2),col2 TIMESTAMP)
→ PARTITION BY LIST COLUMNS(col1)
→ SUBPARTITION BY RANGE COLUMNS(col2)
→ SUBPARTITION TEMPLATE
→ (SUBPARTITION mp0 VALUES LESS THAN(‘2025-11-01 00:00:00’),
→ SUBPARTITION mp1 VALUES LESS THAN (MAXVALUE)
→ )
→ (PARTITION p0 VALUES IN(‘01’,‘03’),
→ PARTITION p1 VALUES IN (DEFAULT)
→ );
ERROR 1659 (HY000): Field ‘col2’ is of a not allowed type for this type of partitioning
obclient [test3]> CREATE TABLE t2222(id INT, gmt_create TIMESTAMP, info VARCHAR(20), PRIMARY KEY (gmt_create))
→ PARTITION BY RANGE COLUMNS(gmt_create)
→ ( PARTITION p0 VALUES LESS THAN (‘2025-11-01 23:00:00’),
→ PARTITION p1 VALUES LESS THAN (MAXVALUE) );
ERROR 1659 (HY000): Field ‘gmt_create’ is of a not allowed type for this type of partitioning
obclient [test3]>