foxtail463 opened a new pull request, #63081:
URL: https://github.com/apache/doris/pull/63081
Problem Summary:
In MV union rewrite, rewrittenPlanUsePartitionNameSet may contain extra MV
partitions outside the query range. For example, the query only uses
{p20260401, p20260402, p20260403}, but the rewritten MV scan may select
partitions from p20260301 to p20260428. The old compensation logic mapped all
removed MV partitions back to base table partitions and added them into
baseTableNeedUnionPartitionNameSet. This created unnecessary base table union
branches, increased the MV candidate cost, and could make explain show
MaterializedViewRewriteSuccessButNotChose.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]