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

[enhance](mtmv)Mtmv rollup #31812

Merged
merged 46 commits into from
May 14, 2024
Merged

[enhance](mtmv)Mtmv rollup #31812

merged 46 commits into from
May 14, 2024

Conversation

zddr
Copy link
Contributor

@zddr zddr commented Mar 5, 2024

Proposed changes

Issue Number: close #xxx

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)

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...

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

@zddr zddr marked this pull request as draft March 5, 2024 11:18
@zddr zddr marked this pull request as ready for review May 8, 2024 05:46
@zddr
Copy link
Contributor Author

zddr commented May 8, 2024

run buildall

@zddr
Copy link
Contributor Author

zddr commented May 8, 2024

run buildall

@seawinde
Copy link
Contributor

seawinde commented May 8, 2024

check null partition is correct in the partition roll up scene

Copy link
Contributor

github-actions bot commented May 8, 2024

PR approved by anyone and no changes requested.

@zddr
Copy link
Contributor Author

zddr commented May 9, 2024

run buildall

@zddr
Copy link
Contributor Author

zddr commented May 9, 2024

run buildall

Copy link
Contributor

@morrySnow morrySnow left a 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

@zddr
Copy link
Contributor Author

zddr commented May 13, 2024

run buildall

Comment on lines +229 to +230
: partitionKey = identifier
| partitionExpr = functionCallExpression
Copy link
Contributor

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

Suggested change
: partitionKey = identifier
| partitionExpr = functionCallExpression
: identifier #partitionKey
| functionCallExpression partitionExpr
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label May 14, 2024
Copy link
Contributor

PR approved by at least one committer and no changes requested.

1 similar comment
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@morrySnow morrySnow merged commit 235506b into apache:master May 14, 2024
25 of 27 checks passed
ByteYue pushed a commit to ByteYue/doris that referenced this pull request May 15, 2024
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)
```
yiguolei pushed a commit that referenced this pull request May 18, 2024
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)
```
@morningman morningman mentioned this pull request Jun 22, 2024
@yiguolei yiguolei mentioned this pull request Jul 19, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.1.4-merged reviewed
4 participants