[GitHub] [carbondata] ajantha-bhat commented on a change in pull request #3306: [CARBONDATA-3452] Fix select query failure when substring on dictionary column with join

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] ajantha-bhat commented on a change in pull request #3306: [CARBONDATA-3452] Fix select query failure when substring on dictionary column with join

GitBox
ajantha-bhat commented on a change in pull request #3306: [CARBONDATA-3452] Fix select query failure when substring on dictionary column with join
URL: https://github.com/apache/carbondata/pull/3306#discussion_r311537853
 
 

 ##########
 File path: integration/spark2/src/main/scala/org/apache/spark/sql/optimizer/CarbonLateDecodeRule.scala
 ##########
 @@ -698,11 +698,20 @@ class CarbonLateDecodeRule extends Rule[LogicalPlan] with PredicateHelper {
         u
       case p: Project if relations.nonEmpty =>
         val prExps = p.projectList.map { prExp =>
+          var isSubstringPresent = false
           prExp.transform {
-            case attr: AttributeReference =>
-              updateDataType(attr, attrMap, allAttrsNotDecode, aliasMap)
+            case subStr: Substring =>
 
 Review comment:
   ok handled and updated test case also

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