-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[enhancement](auto-partition) Forbid use Auto and Dynamic partition at the same time #33736
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 |
1 similar comment
|
run buildall |
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
Show resolved
Hide resolved
9c4b9e0 to
0079bd0
Compare
|
run buildall |
TPC-H: Total hot run time: 38478 ms |
TPC-DS: Total hot run time: 185642 ms |
ClickBench: Total hot run time: 30.11 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
HappenLee
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
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
…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.
…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
doc pr: apache/doris-website#563
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...