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
@github-actions
github-actions Bot requested a review from yiguolei as a code owner November 12, 2025 04:05
@Thearas

Thearas commented Nov 12, 2025

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?

@dataroaring dataroaring reopened this Nov 12, 2025
@Thearas

Thearas commented Nov 12, 2025

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.0 Nov 13, 2025
25 of 27 checks passed
@github-actions
github-actions Bot deleted the auto-pick-57013-branch-4.0 branch November 13, 2025 12:14
Sign up for free to 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