Indhumathi27 commented on a change in pull request #3312: [CARBONDATA-3457][MV] Fix Column not found issue with Query having Cast Expression
URL:
https://github.com/apache/carbondata/pull/3312#discussion_r299357977
##########
File path: datamap/mv/core/src/main/scala/org/apache/carbondata/mv/rewrite/DefaultMatchMaker.scala
##########
@@ -53,6 +53,13 @@ abstract class DefaultMatchPattern extends MatchPattern[ModularPlan] {
(a.child.asInstanceOf[Attribute], a.toAttribute)
})
+ // Create aliasMap with Cast Expression to alias reference attribute
+ val aliasMapCast =
Review comment:
if aliasMap is changed to Map[Expression, Attribute], then for mv queries having column name and table name as same, fails. hence i think for this case, aliasMap for expression has to be created.
----------------------------------------------------------------
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:
[hidden email]
With regards,
Apache Git Services