-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Enhancement](partition) Support use Auto and Dynamic partition at the same time #39580
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
TPC-H: Total hot run time: 38041 ms |
TPC-DS: Total hot run time: 190853 ms |
ClickBench: Total hot run time: 31.39 s |
|
run buildall |
|
wait #39695 merge firstly |
|
run buildall |
TPC-H: Total hot run time: 38134 ms |
TPC-DS: Total hot run time: 186771 ms |
ClickBench: Total hot run time: 31.41 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
yujun777
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…e same time (apache#39580) before we forbid it in apache#33736, now it's time to let it go. now we support: ```sql mysql> create table auto_dynamic( -> k0 datetime(6) NOT NULL -> ) -> auto partition by range (date_trunc(k0, 'year')) -> ( -> ) -> DISTRIBUTED BY HASH(`k0`) BUCKETS 2 -> properties( -> "dynamic_partition.enable" = "true", -> "dynamic_partition.prefix" = "p", -> "dynamic_partition.start" = "-50", -> "dynamic_partition.end" = "0", -> "dynamic_partition.time_unit" = "year", -> "replication_num" = "1" -> ); Query OK, 0 rows affected (0.12 sec) ``` with this, the users could manage their data more flexible we will refactor the docs of it, and the only recommended way it set end to zero.
…e same time (#39580) ## Proposed changes before we forbid it in #33736, now it's time to let it go. now we support: ```sql mysql> create table auto_dynamic( -> k0 datetime(6) NOT NULL -> ) -> auto partition by range (date_trunc(k0, 'year')) -> ( -> ) -> DISTRIBUTED BY HASH(`k0`) BUCKETS 2 -> properties( -> "dynamic_partition.enable" = "true", -> "dynamic_partition.prefix" = "p", -> "dynamic_partition.start" = "-50", -> "dynamic_partition.end" = "0", -> "dynamic_partition.time_unit" = "year", -> "replication_num" = "1" -> ); Query OK, 0 rows affected (0.12 sec) ``` with this, the users could manage their data more flexible we will refactor the docs of it, and the only recommended way it set end to zero.
Proposed changes
Issue Number: close #xxx
before we forbid it in #33736, now it's time to let it go.
now we support:
with this, the users could manage their data more flexible
we will refactor the docs of it, and the only recommended way it set end to zero.