Skip to content

failed to create interval partition at minute interval #57698

@dbsid

Description

@dbsid

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> CREATE TABLE t (     a int NOT NULL,     b varchar(20) NOT NULL,     c datetime NOT NULL ) PARTITION BY RANGE COLUMNS (c) INTERVAL (1 MINUTE) FIRST PARTITION LESS THAN ('2024-01-01') LAST PARTITION LESS THAN ('2024-02-01');
ERROR 8200 (HY000): Unsupported INTERVAL partitioning, only supports YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE and SECOND as time unit
mysql> CREATE TABLE t (     a int NOT NULL,     b varchar(20) NOT NULL,     c datetime NOT NULL ) PARTITION BY RANGE COLUMNS (c) INTERVAL (1 HOUR) FIRST PARTITION LESS THAN ('2024-01-01') LAST PARTITION LESS THAN ('2024-02-01');
Query OK, 0 rows affected (0.20 sec)

2. What did you expect to see? (Required)

INTERVAL (1 MINUTE) does not work.
INTERVAL (1 Hour) works

3. What did you see instead (Required)

INTERVAL (1 MINUTE) works.

4. What is your TiDB version? (Required)

v8.3.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions