[enhance](mtmv)Mtmv datetrunc support week and quarter#39286
Merged
morrySnow merged 5 commits intoapache:masterfrom Aug 14, 2024
Merged
[enhance](mtmv)Mtmv datetrunc support week and quarter#39286morrySnow merged 5 commits intoapache:masterfrom
morrySnow merged 5 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 39866 ms |
TPC-DS: Total hot run time: 189468 ms |
ClickBench: Total hot run time: 30.77 s |
Contributor
Author
|
run cloud_p1 |
seawinde
reviewed
Aug 14, 2024
| result = value.plusYears(1L); | ||
| break; | ||
| case "quarter": | ||
| result = value.plusMonths(3L); |
Member
There was a problem hiding this comment.
why add 3 month, can add some comment to explain this
Contributor
Author
There was a problem hiding this comment.
value not have plusQuarter method,so use plusMonths(3L);
seawinde
approved these changes
Aug 14, 2024
Contributor
|
PR approved by anyone and no changes requested. |
morrySnow
approved these changes
Aug 14, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
wyxxxcat
pushed a commit
to wyxxxcat/doris
that referenced
this pull request
Aug 14, 2024
if base table have 3 partitions:
PARTITION p_20200101 VALUES [("2020-01-01"),("2020-01-02")),
PARTITION p_20200102 VALUES [("2020-01-02"),("2020-01-03")),
PARTITION p_20200108 VALUES [("2020-01-08"),("2020-01-09"))
mtmv partition date_trunc(week)
mtmv will have 2 partitions
[("2019-12-30"),("2020-01-06"))
[("2020-01-06"),("2020-01-13"))
zddr
added a commit
to zddr/incubator-doris
that referenced
this pull request
Aug 16, 2024
if base table have 3 partitions:
PARTITION p_20200101 VALUES [("2020-01-01"),("2020-01-02")),
PARTITION p_20200102 VALUES [("2020-01-02"),("2020-01-03")),
PARTITION p_20200108 VALUES [("2020-01-08"),("2020-01-09"))
mtmv partition date_trunc(week)
mtmv will have 2 partitions
[("2019-12-30"),("2020-01-06"))
[("2020-01-06"),("2020-01-13"))
morrySnow
pushed a commit
that referenced
this pull request
Aug 16, 2024
dataroaring
pushed a commit
that referenced
this pull request
Aug 17, 2024
if base table have 3 partitions:
PARTITION p_20200101 VALUES [("2020-01-01"),("2020-01-02")),
PARTITION p_20200102 VALUES [("2020-01-02"),("2020-01-03")),
PARTITION p_20200108 VALUES [("2020-01-08"),("2020-01-09"))
mtmv partition date_trunc(week)
mtmv will have 2 partitions
[("2019-12-30"),("2020-01-06"))
[("2020-01-06"),("2020-01-13"))
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
if base table have 3 partitions:
mtmv partition date_trunc(week)
mtmv will have 2 partitions