akashrn5 commented on a change in pull request #3699: [CARBONDATA-3768] Fix
query not hitting mv without alias, with mv having Alias
URL: https://github.com/apache/carbondata/pull/3699#discussion_r407336441
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/optimizer/MVMatcher.scala
##########
@@ -863,11 +863,15 @@ private object GroupbyGroupbyNoChildDelta extends
MVMatchPattern {
isExpressionMatches(expr, gb_2q.predicateList))
val isOutputEmR = gb_2q.outputList.forall {
case a @ Alias(_, _) =>
- gb_2a.outputList.exists{
+ gb_2a.outputList.exists {
case a1: Alias => a1.child.semanticEquals(a.child)
Review comment:
rename `a1` as `alias`
----------------------------------------------------------------
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]
With regards,
Apache Git Services