morningman opened a new pull request #3679:
URL: https://github.com/apache/incubator-doris/pull/3679


   Problem is described in ISSUE #3678 
   This CL mainly changed to rule of creating dynamic partition.
   
   1. If time unit is DAY, the logic remains unchanged.
   2. If time unit is WEEK, the logical changes are as follows:
   
        1. Allow to set the start day of every week, the default is Monday. 
Optional Monday to Sunday
        2. Assuming that the starting day is a Tuesday, the range of the 
partition is Tuesday of the week to Monday of the next week.
   
   3. If time unit is MONTH, the logical changes are as follows:
   
        1. Allow to set the start date of each month. The default is 1st, and 
can be selected from 1st to 28th.
        2. Assuming that the starting date is the 2nd, the range of the 
partition is from the 2nd of this month to the 1st of the next month.
   
   4. The `SHOW DYNAMIC PARTITION TABLES` statement adds a `StartOf` column to 
show the start day of week or month.
   
   It is recommended to refer to the example in `dynamic-partition.md` to 
understand.
   
   TODO:
   Better to support HOUR and YEAR time unit. Maybe in next PR.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to