Skip to content

branch-4.0: [Feature](partition) Support new partition recycle mechanism #57013 - #57939

Merged
yiguolei merged 1 commit into
branch-4.0from
auto-pick-57013-branch-4.0
Nov 13, 2025
Merged

branch-4.0: [Feature](partition) Support new partition recycle mechanism #57013#57939
yiguolei merged 1 commit into
branch-4.0from
auto-pick-57013-branch-4.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #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
@Thearas

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@Thearas

Copy link
Copy Markdown
Contributor

run buildall

@zclllyybb

Copy link
Copy Markdown
Contributor

run feut

@zclllyybb

Copy link
Copy Markdown
Contributor

run buildall

@zclllyybb

Copy link
Copy Markdown
Contributor

run feut

1 similar comment
@zclllyybb

Copy link
Copy Markdown
Contributor

run feut

@yiguolei
yiguolei merged commit 8d40c7a into branch-4.0Nov 13, 2025
25 of 27 checks passed
@github-actions
github-actionsBot deleted the auto-pick-57013-branch-4.0 branch November 13, 2025 12:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Thearas@zclllyybb@yiguolei@dataroaring