ajantha-bhat commented on a change in pull request #3771: URL: https://github.com/apache/carbondata/pull/3771#discussion_r447457038
########## File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/strategy/CarbonLateDecodeStrategy.scala ########## @@ -865,6 +869,27 @@ private[sql] class CarbonLateDecodeStrategy extends SparkStrategy { Some(CarbonContainsWith(c)) case c@Literal(v, t) if (v == null) => Some(FalseExpr()) + case c@ArrayContains(a: Attribute, Literal(v, t)) => + a.dataType match { + case arrayType: ArrayType => + arrayType.elementType match { + case StringType => Some(sources.EqualTo(a.name, v)) Review comment: I want reuse existing equalsTo code, I don't see any advantage of making new expression ########## File path: integration/spark/src/main/scala/org/apache/spark/sql/optimizer/CarbonFilters.scala ########## @@ -152,13 +152,25 @@ object CarbonFilters { } def getCarbonExpression(name: String) = { Review comment: I want reuse existing equalsTo code, I don't see any advantage of making new expression ---------------------------------------------------------------- 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: us...@infra.apache.org