foxtail463 commented on PR #68648: URL: https://github.com/apache/doris/pull/68648#issuecomment-6220866306
MTMVRewriteUtil.getMTMVCanRewritePartitions() 已经在相关基表包含默认 LIST 分区时返回空集合,因此该 MV 不会进入后续查询改写候选。这里的 mvPartitionsToReadThrough() 又只在补偿默认分区时调用,当前正常入口下无法触发。 建议删除这个方法、仅供它使用的 isPctTable(),以及 mvPartitionsToRemove 在 PredicateAddContext、StructInfo 和规则调用方之间的新增参数链。保留普通分区补偿逻辑即可,避免维护一条当前用不到的实现。 -- 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]
