[Dynamic Partition] reserve specific history periods by dynamic partition.#6554
[Dynamic Partition] reserve specific history periods by dynamic partition.#6554morningman merged 16 commits intoapache:masterfrom
Conversation
|
I will add some unit-tests later. |
f779054 to
bda1918
Compare
|
hi @Henry2SS please update the document |
Done. |
88f8036 to
d10cf87
Compare
|
|
||
| ``` | ||
| ["2020-06-01","2020-06-20"), | ||
| ["2020-10-31","2020-11-15") |
There was a problem hiding this comment.
Why using closed open range? Not closed range?
| private static void checkReservedHistoryStarts(String reservedHistoryStarts) throws DdlException{ | ||
| String[] starts = reservedHistoryStarts.split(","); | ||
| if (starts.length == 0) { | ||
| //ErrorReport.reportDdlException(ErrorCode.ERROR_DYNAMIC_PARTITION_RESERVED_HISTORY_STARTS_EMPTY); |
There was a problem hiding this comment.
Why not using ErrorReport.reportDdlException?
|
Hi, @morningman changed reserved history periods from closedOpen to closed. Thanks for your advice. |
|
how about comibine two configs into one config, use reserved_history_list instead of reserved_history_starts and reserved_history_ends, and we can set the property like "[2021-01-01, 2021-01-31] , [2021-02-03, 2021-02-15]", and use pattern to check the property and extract property |
Great idea. And i've finished changing it to |
a1605da to
d12bccf
Compare
|
please rebase master to solve the conflicts problem |
a0f623b to
f5726d1
Compare
d976679 to
8436d16
Compare
8436d16 to
5a0d881
Compare
864096b to
5331b4e
Compare
Done. |
8bc295f to
b605066
Compare
8226393 to
91c0e3b
Compare
c58a073 to
346cc33
Compare
|
@morningman Hi, it could reserve history periods when the TIME_UNIT is set to HOUR now. And modified docs and add two more unit-test to do validation. |
3f6d2db to
1233b3b
Compare
1233b3b to
8a23015
Compare
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
Proposed changes
Add
RESERVED_HISTORY_STARTSandRESERVED_HISTORY_ENDS.Fixes #6514
Types of changes
What types of changes does your code introduce to Doris?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.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...