morrySnow commented on code in PR #34681: URL: https://github.com/apache/doris/pull/34681#discussion_r1599282199
########## fe/fe-core/src/main/java/org/apache/doris/nereids/analyzer/UnboundRelation.java: ########## @@ -59,41 +60,46 @@ public class UnboundRelation extends LogicalRelation implements Unbound, BlockFu // the start and end position of the sql substring(e.g. "t1", "db1.t1", "ctl1.db1.t1") private final Optional<Pair<Integer, Integer>> indexInSqlString; + private final Optional<TableSnapshot> tableSnapshot; + public UnboundRelation(RelationId id, List<String> nameParts) { this(id, nameParts, Optional.empty(), Optional.empty(), ImmutableList.of(), false, ImmutableList.of(), - ImmutableList.of(), Optional.empty(), Optional.empty(), null, Optional.empty()); + ImmutableList.of(), Optional.empty(), Optional.empty(), null, Optional.empty(), null); } public UnboundRelation(RelationId id, List<String> nameParts, List<String> partNames, boolean isTempPart) { this(id, nameParts, Optional.empty(), Optional.empty(), partNames, isTempPart, ImmutableList.of(), - ImmutableList.of(), Optional.empty(), Optional.empty(), null, Optional.empty()); + ImmutableList.of(), Optional.empty(), Optional.empty(), null, Optional.empty(), null); } public UnboundRelation(RelationId id, List<String> nameParts, List<String> partNames, boolean isTempPart, List<Long> tabletIds, List<String> hints, Optional<TableSample> tableSample, Optional<String> indexName) { this(id, nameParts, Optional.empty(), Optional.empty(), - partNames, isTempPart, tabletIds, hints, tableSample, indexName, null, Optional.empty()); + partNames, isTempPart, tabletIds, hints, tableSample, indexName, null, Optional.empty(), null); } public UnboundRelation(RelationId id, List<String> nameParts, List<String> partNames, boolean isTempPart, List<Long> tabletIds, List<String> hints, Optional<TableSample> tableSample, Optional<String> indexName, - TableScanParams scanParams) { + TableScanParams scanParams, Optional<TableSnapshot> tableSnapshot) { this(id, nameParts, Optional.empty(), Optional.empty(), - partNames, isTempPart, tabletIds, hints, tableSample, indexName, scanParams, Optional.empty()); + partNames, isTempPart, tabletIds, hints, tableSample, indexName, scanParams, Optional.empty(), + tableSnapshot); } public UnboundRelation(RelationId id, List<String> nameParts, Optional<GroupExpression> groupExpression, Optional<LogicalProperties> logicalProperties, List<String> partNames, boolean isTempPart, List<Long> tabletIds, List<String> hints, Optional<TableSample> tableSample, Optional<String> indexName) { this(id, nameParts, groupExpression, logicalProperties, partNames, - isTempPart, tabletIds, hints, tableSample, indexName, null, Optional.empty()); + isTempPart, tabletIds, hints, tableSample, indexName, null, Optional.empty(), null); Review Comment: ```suggestion isTempPart, tabletIds, hints, tableSample, indexName, null, Optional.empty(), Optional.empty()); ``` -- 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