-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[Feature](partition) Support new partition recycle mechanism #57013
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. Please clearly describe your PR:
|
|
run buildall |
TPC-DS: Total hot run time: 190623 ms |
ClickBench: Total hot run time: 30.64 s |
3261f06 to
4a6ce98
Compare
|
run buildall |
TPC-DS: Total hot run time: 189945 ms |
ClickBench: Total hot run time: 30.08 s |
FE UT Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
Outdated
Show resolved
Hide resolved
|
what about using retention_count, e.g. "partition.retention_count" = "3"? |
regression-test/suites/partition_p0/auto_partition/test_auto_new_recycle.groovy
Show resolved
Hide resolved
|
run buildall |
TPC-DS: Total hot run time: 190908 ms |
ClickBench: Total hot run time: 30.38 s |
FE UT Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
regression-test/suites/partition_p0/auto_partition/test_auto_new_recycle.groovy
Show resolved
Hide resolved
84fd8f6 to
f3001c3
Compare
|
run buildall |
doc of apache/doris#57060, apache/doris#57013 and fix of #2970 ## Versions - [x] dev - [x] 3.x - [ ] 2.1 - [ ] 2.0 ## Languages - [x] Chinese - [x] English ## Docs Checklist - [ ] Checked by AI - [ ] Test Cases Built
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
TPC-DS: Total hot run time: 190683 ms |
ClickBench: Total hot run time: 28.49 s |
fe/fe-core/src/main/java/org/apache/doris/cloud/alter/CloudSchemaChangeHandler.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
Show resolved
Hide resolved
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
dataroaring
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
now support:
```sql
create table auto_recycle(
k0 datetime(6) not null
)
auto partition by range (date_trunc(k0, 'day')) ()
DISTRIBUTED BY HASH(`k0`) BUCKETS 1
properties(
"replication_num" = "1",
"partition.retention_count" = "3"
);
```
which means only keep the latest 3 partition in history partitions.
ccr will be tested in selectdb/ccr-syncer#646
### Release note
Resolve the problem of different name format when need to recycle auto partition
…57013) now support: ```sql create table auto_recycle( k0 datetime(6) not null ) auto partition by range (date_trunc(k0, 'day')) () DISTRIBUTED BY HASH(`k0`) BUCKETS 1 properties( "replication_num" = "1", "partition.retention_count" = "3" ); ``` which means only keep the latest 3 partition in history partitions. ccr will be tested in selectdb/ccr-syncer#646 ### Release note Resolve the problem of different name format when need to recycle auto partition
…ism #57013 (#57939) Cherry-picked from #57013 Co-authored-by: zclllyybb <[email protected]>
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
now support:
which means only keep the latest 3 partition in history partitions.
ccr will be tested in selectdb/ccr-syncer#646
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)