TsukiokaKogane commented on code in PR #62453:
URL: https://github.com/apache/doris/pull/62453#discussion_r3153200826


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindRelation.java:
##########
@@ -264,6 +267,27 @@ private LogicalPlan makeOlapScan(TableIf table, 
UnboundRelation unboundRelation,
         }
     }
 
+    private LogicalPlan makeOlapTableStreamScan(TableIf table, UnboundRelation 
unboundRelation,
+                                                List<String> qualifier, 
CascadesContext cascadesContext) {
+        LogicalOlapTableStreamScan scan;
+        List<Long> partIds = getPartitionIds(table, unboundRelation, 
qualifier);
+        List<Long> tabletIds = unboundRelation.getTabletIds();
+        if (!CollectionUtils.isEmpty(partIds) && 
!unboundRelation.getIndexName().isPresent()) {
+            scan = new 
LogicalOlapTableStreamScan(unboundRelation.getRelationId(),
+                    (OlapTable) table, qualifier, partIds, tabletIds, 
unboundRelation.getHints(),
+                    unboundRelation.getTableSample(), ImmutableList.of());
+        } else {
+            scan = new 
LogicalOlapTableStreamScan(unboundRelation.getRelationId(),
+                    (OlapTable) table, qualifier, tabletIds, 
unboundRelation.getHints(),
+                    unboundRelation.getTableSample(), ImmutableList.of());
+        }
+        if (!tabletIds.isEmpty()) {
+            // This tabletIds is set manually, so need to set 
specifiedTabletIds
+            scan = scan.withManuallySpecifiedTabletIds(tabletIds);

Review Comment:
   fixed



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