QiangCai commented on a change in pull request #3771:
URL: https://github.com/apache/carbondata/pull/3771#discussion_r456175101
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/execution/strategy/CarbonLateDecodeStrategy.scala
##########
@@ -865,7 +870,33 @@ private[sql] class CarbonLateDecodeStrategy extends
SparkStrategy {
Some(CarbonContainsWith(c))
case c@Literal(v, t) if (v == null) =>
Some(FalseExpr())
- case others => None
+ case c@ArrayContains(a: Attribute, Literal(v, t)) =>
+ a.dataType match {
+ case arrayType: ArrayType =>
+ arrayType.elementType match {
Review comment:
how about extract the match code block to a method: isPrimitiveDataType
and move it into a util class?
----------------------------------------------------------------
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]