englefly commented on code in PR #35436:
URL: https://github.com/apache/doris/pull/35436#discussion_r1616086243
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/StatementContext.java:
##########
@@ -149,6 +152,10 @@ public class StatementContext implements Closeable {
// Record table id mapping, the key is the hash code of union catalogId,
databaseId, tableId
// the value is the auto-increment id in the cascades context
private final Map<TableIdentifier, TableId> tableIdMapping = new
LinkedHashMap<>();
+ // Record the materialization statistics by id which is used for cost
estimation.
+ // Maybe return null, which means the id according statistics should calc
normally rather than getting
+ // form this map
+ private final Map<RelationId, Statistics> relationIdToStatisticsMap = new
LinkedHashMap<>();
Review Comment:
how to deal with rollup? the selectedIndex is not part of 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]