Skip to content

branch-3.1: [fix](mtmv) Fix hudi materialized view union all rewritten plan execute fail because of invalid slot #58643 - #58724

Merged
morrySnow merged 4 commits into
apache:branch-3.1from
seawinde:fix_regression_test_hudi_31
Dec 5, 2025
Merged

branch-3.1: [fix](mtmv) Fix hudi materialized view union all rewritten plan execute fail because of invalid slot #58643#58724
morrySnow merged 4 commits into
apache:branch-3.1from
seawinde:fix_regression_test_hudi_31

Conversation

@seawinde

@seawindeseawinde commented Dec 4, 2025

Copy link
Copy Markdown
Member

picked from #58643

…te fail because of invalid slot (apache#58643)
Related PR: apache#57558apache#58413
Problem Summary:
This fix addresses the following three issues:
1. When invoking the method
org.apache.doris.nereids.trees.plans.logical.LogicalHudiScan#withRelationId,
the output needs to be recalculated to meet expectations.
2. After compensating with a union all due to partial partition
invalidation of a materialized view, during the next round of
transparent rewriting, the rewriting for the child of the union
allshould use the query partitioncorresponding to the specific relation
id to prevent infinite loops.
3. Currently, in the `test_hudi_rewrite_mtmv` test, if the plan
rewritten by the materialized view transparent rewriting is not selected
by the CBO, it is difficult to troubleshoot because explain memo planis
not used. Therefore, the corresponding test method is modified.
@hello-stephen

Copy link
Copy Markdown
Contributor

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

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@seawinde

Copy link
Copy Markdown
MemberAuthor

run buildall

@seawinde

Copy link
Copy Markdown
MemberAuthor

run buildall

@seawinde

Copy link
Copy Markdown
MemberAuthor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 73.68% (14/19) 🎉
Increment coverage report
Complete coverage report

@morrySnowmorrySnow changed the title branch-3.1:[fix](mtmv) Fix hudi materialized view union all rewritten plan execute fail because of invalid slot #58643branch-3.1: [fix](mtmv) Fix hudi materialized view union all rewritten plan execute fail because of invalid slot #58643Dec 5, 2025
@morrySnow
morrySnow merged commit a9361ea into apache:branch-3.1Dec 5, 2025
22 checks passed
Sign up for freeto 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

@seawinde@hello-stephen@morrySnow