Skip to content

Commit a11b9f3

Browse files
committed
Modified NOT predicate test case in PartitionBatchPruningSuite
Added an unsupported NOT predicate test case.
1 parent 8ea872b commit a11b9f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/columnar/PartitionBatchPruningSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ class PartitionBatchPruningSuite extends FunSuite with BeforeAndAfterAll with Be
6767
checkBatchPruning("i > 8 AND i <= 21", 9 to 21, 2, 3)
6868
checkBatchPruning("i < 2 OR i > 99", Seq(1, 100), 2, 2)
6969
checkBatchPruning("i < 2 OR (i > 78 AND i < 92)", Seq(1) ++ (79 to 91), 3, 4)
70+
checkBatchPruning("NOT (i < 88)", 88 to 100, 1, 2)
7071

7172
// With unsupported predicate
7273
checkBatchPruning("i < 12 AND i IS NOT NULL", 1 to 11, 1, 2)
73-
checkBatchPruning("NOT (i < 88)", 88 to 100, 5, 10)
74+
checkBatchPruning("NOT (i in (1))", 2 to 100, 5, 10)
7475

7576
def checkBatchPruning(
7677
filter: String,

0 commit comments

Comments
 (0)