diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFilters.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFilters.scala index 9bee4f59b5854..250e73a4dba92 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFilters.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFilters.scala @@ -88,7 +88,7 @@ private[orc] object OrcFilters extends Logging { .orElse(tryLeft.flatMap(_ => buildSearchArgument(left, builder))) .orElse(tryRight.flatMap(_ => buildSearchArgument(right, builder))) - case And(left, right) => + case Or(left, right) => for { _ <- buildSearchArgument(left, newBuilder) _ <- buildSearchArgument(right, newBuilder)