Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2311#discussion_r189221128
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/strategy/CarbonLateDecodeStrategy.scala
---
@@ -479,6 +479,21 @@ private[sql] class CarbonLateDecodeStrategy extends
SparkStrategy {
case a: Attribute if isComplexAttribute(a) => a
}.size == 0 )
+ // block filters for lucene with more than one text_match udf
+ // Todo: handle when lucene and normal query filter is supported
+ if (predicates.nonEmpty) {
+ if (predicates.seq.head.isInstanceOf[ScalaUDF]) {
--- End diff --
Logic seems wrong, supposed to be check over all predicates not just on head
---