zddr commented on code in PR #56423:
URL: https://github.com/apache/doris/pull/56423#discussion_r2434405284


##########
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRelation.java:
##########
@@ -25,22 +25,36 @@
 import java.util.Set;
 
 public class MTMVRelation {
-    // if mtmv query sql is `select * from view1`;
-    // and `view1` query sql is `select * from table1 join table2`
-    // then baseTables will include: `table1` and `table2`
-    // baseViews will include `view1`
+    // t1 => v1 => v2
+    // t2 => mv1
+    // mv1 join v2 => mv2
+    //
+    // data of mv2 is:
+    //
+    // baseTables => mv1,t1,t2
+    // baseTablesWithView => mv1,t1
+    // baseTablesOneLevel => mv1
+    // baseViews => v2,v1
+    // baseViewsOneLevel => v2
     @SerializedName("bt")
     private Set<BaseTableInfo> baseTables;
     @SerializedName("bv")
     private Set<BaseTableInfo> baseViews;
     @SerializedName("btol")
     private Set<BaseTableInfo> baseTablesOneLevel;
+    @SerializedName("btolafv")
+    private Set<BaseTableInfo> baseTablesOneLevelAndFromView;

Review Comment:
   There are specific examples above



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