-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[enhance](mtmv)Mtmv rollup #31812
[enhance](mtmv)Mtmv rollup #31812
Conversation
Thank you for your contribution to Apache Doris. |
run buildall |
run buildall |
check null partition is correct in the partition roll up scene |
PR approved by anyone and no changes requested. |
run buildall |
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are too many util function for async mv. We should add unit test for them
...rc/main/java/org/apache/doris/nereids/trees/plans/commands/info/MTMVPartitionDefinition.java
Show resolved
Hide resolved
...rc/main/java/org/apache/doris/nereids/trees/plans/commands/info/MTMVPartitionDefinition.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/apache/doris/nereids/trees/plans/commands/info/MTMVPartitionDefinition.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRelatedPartitionDescRollUpGenerator.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPartitionExprDateTrunc.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPartitionExprDateTrunc.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPartitionUtil.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/apache/doris/nereids/trees/plans/commands/info/MTMVPartitionDefinition.java
Show resolved
Hide resolved
run buildall |
: partitionKey = identifier | ||
| partitionExpr = functionCallExpression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: u could write like
: partitionKey = identifier | |
| partitionExpr = functionCallExpression | |
: identifier #partitionKey | |
| functionCallExpression partitionExpr |
PR approved by at least one committer and no changes requested. |
1 similar comment
PR approved by at least one committer and no changes requested. |
if create MTMV `date_trunc(`xxx`,'month')` when related table is `range` partition,and have 3 partitions: ``` 20200101-20200102 20200102-20200103 20200201-20200202 ``` then MTMV will have 2 partitions: ``` 20200101-20200201 20200201-20200301 ``` when related table is `list` partition,and have 3 partitions: ``` (20200101,20200102) (20200103) (20200201) ``` then MTMV will have 2 partitions: ``` (20200101,20200102,20200103) (20200201) ```
if create MTMV `date_trunc(`xxx`,'month')` when related table is `range` partition,and have 3 partitions: ``` 20200101-20200102 20200102-20200103 20200201-20200202 ``` then MTMV will have 2 partitions: ``` 20200101-20200201 20200201-20200301 ``` when related table is `list` partition,and have 3 partitions: ``` (20200101,20200102) (20200103) (20200201) ``` then MTMV will have 2 partitions: ``` (20200101,20200102,20200103) (20200201) ```
Proposed changes
Issue Number: close #xxx
if create MTMV
date_trunc(
xxx,'month')
when related table is
range
partition,and have 3 partitions:then MTMV will have 2 partitions:
when related table is
list
partition,and have 3 partitions:then MTMV will have 2 partitions:
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...