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

[fix](mtmv) Mapping materialization statistics's expressionToColumnStats to mv scan plan based #36058

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

seawinde
Copy link
Contributor

@seawinde seawinde commented Jun 7, 2024

Proposed changes

commitId: f744276
pr: #35749

this is brought by #35436

in the method MaterializationContext#getPlanStatistics this get the materialization context orginal plan statistics.
but the expressionToColumnStats in statistics is the slot of original plan. We want the statistics of original plan but the
expressionToColumnStats in which should be mv scan plan based actually. So add the method
MaterializationContext#normalizeStatisticsColumnExpression. when after generate the PlanStatistics in MaterializationContext, should call the normalizeStatisticsColumnExpression method.

@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

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

…ats to mv scan plan based (apache#35749)

this is brought by apache#35436 

in the method `MaterializationContext#getPlanStatistics` this get the
materialization context orginal plan statistics.
but the `expressionToColumnStats` in statistics is the slot of original plan.
We want the statistics of original plan but the
`expressionToColumnStats` in which should be mv scan plan based actually.
So add the method
`MaterializationContext#normalizeStatisticsColumnExpression`. when after
generate the PlanStatistics in MaterializationContext, should call the
normalizeStatisticsColumnExpression method.
@morningman morningman force-pushed the fix_statistics_mapping_to214 branch from a1ba879 to 7ba35e9 Compare June 8, 2024 14:12
@morningman
Copy link
Contributor

run buildall

@morningman morningman merged commit 97ac46d into apache:branch-2.1 Jun 19, 2024
20 of 21 checks passed
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants