yujun777 opened a new pull request, #65657:
URL: https://github.com/apache/doris/pull/65657

   ### What problem does this PR solve?
   
   Related Issue: #65654
   
   `LogicalOlapTableStreamScan.withSelectedPartitionIds(List<Long>, boolean)` 
diverged from `LogicalOlapScan` and changed the meaning of the second 
parameter. In `LogicalOlapScan`, the second parameter represents 
`hasPartitionPredicate`, while the rebuilt scan is always marked as 
partition-pruned. The stream scan override treated that second parameter as 
`isPartitionPruned`, which let partition pruning rebuild a stream scan that 
still looked unpruned and could be matched again by the same rewrite rule.
   
   This PR keeps the stream-scan override consistent with `LogicalOlapScan`: 
the second parameter remains `hasPartitionPredicate`, and the rebuilt 
`LogicalOlapTableStreamScan` is marked as already partition-pruned.
   
   ### Check List (For Author)
   
   - Regression test: `./run-regression-test.sh --run -d mtmv_p0 -s 
test_ivm_partition_unique_key`


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

Reply via email to