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

对一张非分区表重建为分区表 会报错 请问可以支持这个语法吗 #434

Closed
ht2324 opened this issue Mar 1, 2022 · 3 comments
Labels
wontfix This will not be worked on

Comments

@ht2324
Copy link

ht2324 commented Mar 1, 2022

描述您想要的功能:
可以对普通表修改为分区表
AlTER TABLE PARTITION BY

描述您考虑过的解决/替代方案:

可参考文档,资料,引用等:

@hanchuanchuan
Copy link
Owner

分区表语法已添加支持 #281, #282 , 请确认版本。如升级后仍不支持,请提供具体SQL。

@nick2wang
Copy link

分区表语法已添加支持 #281, #282 , 请确认版本。如升级后仍不支持,请提供具体SQL。

1.2.5版本仍然不支持分区表与非分区表转换语法,SQL样例:
(1) 非分区表修改为分区表:
alter table tb_test partition by range (to_days(bill_date)) (
partition p202201 values less than (to_days('2022-02-01')) ENGINE = InnoDB,
partition p202202 values less than (to_days('2022-03-01')) ENGINE = InnoDB
);
(2) 分区表取消分区:
alter table tb_test remove partitioning;

@stale
Copy link

stale bot commented Apr 16, 2022

由于此问题没有最近的活动,因此已被自动标记为陈旧。如果没有进一步的活动,会作为不活跃issue关闭。感谢你对本项目的贡献。 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 16, 2022
@stale stale bot closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants