Skip to content
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

add dynamic-partition #1734

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Conversation

wangtianyi2004
Copy link
Contributor

@wangtianyi2004 wangtianyi2004 commented Jan 8, 2025

Versions

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built

Copy link
Contributor

@wm1581066 wm1581066 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

);
```

假设当前日期为 2020-05-29,是 2020 年的第 22 周。默认每周起始为星期一。则以上规则,tbl1 会产生以下分区:
上例中创建了动态分区表,指定以下
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后面缺少了内容?还是多了换行?


- LastSchedulerTime: 最后一次执行动态分区调度的时间
在使用 start 与 end 属性指定动态分区数量时,为了避免一次性创建所有的分区造成等待时间过长,不会创建历史分区,只会创建当前时间以后得分区。如果需要一次性创建所有分区,需要开启 `create_history_partition` 参数。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个原因应该不是为了避免创建时间过长,而是除了一些补数的场景,用dynamic partition表的时候一般只面向未来,不需要历史分区。

@KassieZ KassieZ added the has comments Some comments not resolved yet label Jan 14, 2025
@KassieZ KassieZ merged commit 6370b2f into apache:master Jan 15, 2025
1 of 3 checks passed
daveyyan pushed a commit to daveyyan/doris-website that referenced this pull request Jan 15, 2025
## Versions 

- [x] dev
- [x] 3.0
- [x] 2.1
- [ ] 2.0

## Languages

- [x] Chinese
- [x] English

## Docs Checklist

- [ ] Checked by AI
- [ ] Test Cases Built
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has comments Some comments not resolved yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants