seawinde commented on code in PR #51700:
URL: https://github.com/apache/doris/pull/51700#discussion_r2153733097
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/InitMaterializationContextHook.java:
##########
@@ -199,12 +209,17 @@ private List<MaterializationContext>
createAsyncMaterializationContext(CascadesC
// so regenerate the struct info table bitset
StructInfo mvStructInfo = mtmvCache.getStructInfo();
BitSet tableBitSetInCurrentCascadesContext = new BitSet();
- mvStructInfo.getRelations().forEach(relation ->
tableBitSetInCurrentCascadesContext.set(
-
cascadesContext.getStatementContext().getTableId(relation.getTable()).asInt()));
+ BitSet relationIdBitSetInCurrentCascadesContext = new BitSet();
+ mvStructInfo.getRelations().forEach(relation -> {
+ tableBitSetInCurrentCascadesContext.set(
+
cascadesContext.getStatementContext().getTableId(relation.getTable()).asInt());
+
relationIdBitSetInCurrentCascadesContext.set(relation.getRelationId().asInt());
+ });
Review Comment:
this store tableId , the tableId is transfed and is 0 based. this bitset may
store relationId, the relationId also is 0 based, i think this would not be
very large
--
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]