akashrn5 commented on a change in pull request #4060:
URL: https://github.com/apache/carbondata/pull/4060#discussion_r546522529
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/optimizer/MVRewriteRule.scala
##########
@@ -183,7 +184,7 @@ class MVRewriteRule(session: SparkSession) extends
Rule[LogicalPlan] {
catalogs.nonEmpty &&
!isRewritten(validSchemas, catalogs) &&
!isRelatedTableSegmentsSetAsInput(catalogs) &&
- isRelated(validSchemas, catalogs)
+ isRelatedAndSyncWithParentTables(catalog, validSchemas, catalogs)
Review comment:
```suggestion
isRelatedAndSyncWithParentTables(mvCatalog, validSchemas,
catalogTables)
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]