Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alter last partition failed when partition column is datetime #48814

Closed
crazycs520 opened this issue Nov 22, 2023 · 0 comments · Fixed by #48815
Closed

alter last partition failed when partition column is datetime #48814

crazycs520 opened this issue Nov 22, 2023 · 0 comments · Fixed by #48815
Labels
affects-7.1 affects-7.5 component/ddl This issue is related to DDL of TiDB. severity/minor type/bug This issue is a bug.

Comments

@crazycs520
Copy link
Contributor

crazycs520 commented Nov 22, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (id int, create_time datetime)
		partition by range columns (create_time)
		interval (1 day)
		first partition less than ('2023-01-01')
		last partition less than ('2023-12-31');

alter table t last partition less than ('2024-01-01');

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

execute success.

3. What did you see instead (Required)

got error:

> alter table t last partition less than ('2024-01-01');
(8200, 'Unsupported LAST PARTITION, does not seem like an INTERVAL partitioned table')

4. What is your TiDB version? (Required)

tidb_version() | Release Version: v7.6.0-alpha-252-g3ed7732958
Edition: Community
Git Commit Hash: 3ed7732958bde87c200e0888a8e7268499b6a115
Git Branch: master
UTC Build Time: 2023-11-22 12:10:03
GoVersion: go1.21.0
Race Enabled: false
Check Table Before Drop: false
Store: unistore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.1 affects-7.5 component/ddl This issue is related to DDL of TiDB. severity/minor type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants