Kikyou1997 commented on code in PR #11964: URL: https://github.com/apache/doris/pull/11964#discussion_r956303068
########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalOlapScan.java: ########## @@ -42,14 +42,24 @@ public class LogicalOlapScan extends LogicalRelation { private final long selectedIndexId; private final List<Long> selectedTabletId; - private final List<Long> selectedPartitionId; + private final boolean partitionPruned; public LogicalOlapScan(OlapTable table) { this(table, ImmutableList.of()); } public LogicalOlapScan(OlapTable table, List<String> qualifier) { - this(table, qualifier, Optional.empty(), Optional.empty()); + this(table, qualifier, + Optional.empty(), Optional.empty(), + table.getPartitionIds(), false); + } + + public LogicalOlapScan(Table table) { + this(table, ImmutableList.of()); + } + + public LogicalOlapScan(Table table, List<String> qualifier) { + this(table, qualifier, Optional.empty(), Optional.empty(), ((OlapTable) table).getPartitionIds(), false); } Review Comment: done ########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalOlapScan.java: ########## @@ -42,14 +42,24 @@ public class LogicalOlapScan extends LogicalRelation { private final long selectedIndexId; private final List<Long> selectedTabletId; - private final List<Long> selectedPartitionId; + private final boolean partitionPruned; public LogicalOlapScan(OlapTable table) { this(table, ImmutableList.of()); } public LogicalOlapScan(OlapTable table, List<String> qualifier) { - this(table, qualifier, Optional.empty(), Optional.empty()); + this(table, qualifier, + Optional.empty(), Optional.empty(), + table.getPartitionIds(), false); Review Comment: done -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org