yujun777 commented on code in PR #65657:
URL: https://github.com/apache/doris/pull/65657#discussion_r3593097116


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalOlapTableStreamScan.java:
##########
@@ -276,11 +276,11 @@ public LogicalOlapTableStreamScan 
withSelectedPartitionIds(List<Long> selectedPa
      */
     @Override
     public LogicalOlapTableStreamScan withSelectedPartitionIds(List<Long> 
selectedPartitionIds,
-                                                               boolean 
isPartitionPruned) {
+                                                               boolean 
hasPartitionPredicate) {
         return AbstractPlan.copyWithSameId(this, () ->
                 new LogicalOlapTableStreamScan(relationId, (Table) table, 
qualifier,
                         groupExpression, Optional.of(getLogicalProperties()),
-                        selectedPartitionIds, isPartitionPruned, 
hasPartitionPredicate, selectedTabletIds,
+                        selectedPartitionIds, true, hasPartitionPredicate, 
selectedTabletIds,

Review Comment:
   Addressed in the latest updates. The normalized scans now preserve the 
original partition-filter semantics instead of reclassifying internally 
selected partitions as manual partition predicates, so the block-rule path 
keeps seeing the correct hasPartitionPredicate state after stream 
normalization. I also added a focused FE UT, 
ExplainTableStreamPlanTest#testStreamScanWithSelectedPartitionIdsMarksPartitionPruned,
 to lock the builder contract that this fix depends on. I reran run-fe-ut.sh 
--run org.apache.doris.nereids.trees.plans.ExplainTableStreamPlanTest and the 
target test class passed.



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