Skip to content

Commit 96e54a7

Browse files
committed
fix UTs
Change-Id: I3dcf94e65e79fa43eeb22da79919d49069b4f35d
1 parent 7a29f09 commit 96e54a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/PlannerSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class PlannerSuite extends SharedSQLContext {
180180

181181
withTempView("testPushed") {
182182
val exp = sql("select * from testPushed where key = 15").queryExecution.sparkPlan
183-
assert(exp.toString.contains("PushedFilters: [IsNotNull(key), EqualTo(key,15)]"))
183+
assert(exp.toString.contains("PushedFilters: [EqualTo(key,15)]"))
184184
}
185185
}
186186
}

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategySuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class FileSourceStrategySuite extends QueryTest with SharedSQLContext with Predi
197197
"when checking partition values")
198198
}
199199
// Only the filters that do not contain the partition column should be pushed down
200-
checkDataFilters(Set(IsNotNull("c1"), EqualTo("c1", 1)))
200+
checkDataFilters(Set(EqualTo("c1", 1)))
201201
}
202202

203203
test("partitioned table - case insensitive") {
@@ -224,7 +224,7 @@ class FileSourceStrategySuite extends QueryTest with SharedSQLContext with Predi
224224
"when checking partition values")
225225
}
226226
// Only the filters that do not contain the partition column should be pushed down
227-
checkDataFilters(Set(IsNotNull("c1"), EqualTo("c1", 1)))
227+
checkDataFilters(Set(EqualTo("c1", 1)))
228228
}
229229
}
230230

0 commit comments

Comments
 (0)