From 128bd3b025dbdafe473a4f1539d7150f153564fa Mon Sep 17 00:00:00 2001 From: Cheng Lian Date: Sat, 16 May 2015 09:56:51 +0800 Subject: [PATCH] ORC filter bug fix --- .../main/scala/org/apache/spark/sql/hive/orc/OrcFilters.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)