Skip to content

Commit 9174a30

Browse files
committed
Remove duplicated code
1 parent c519c40 commit 9174a30

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/OptimizeInSuite.scala

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -207,23 +207,6 @@ class OptimizeInSuite extends PlanTest {
207207
comparePlans(optimized, correctAnswer)
208208
}
209209

210-
test("OptimizedIn test: In empty list gets transformed to " +
211-
"If(IsNotNull(v), FalseLiteral, Literal(null, BooleanType)) when value is nullable") {
212-
val originalQuery =
213-
testRelation
214-
.where(In(UnresolvedAttribute("a"), Nil))
215-
.analyze
216-
217-
val optimized = Optimize.execute(originalQuery)
218-
val correctAnswer =
219-
testRelation
220-
.where(If(IsNotNull(UnresolvedAttribute("a")),
221-
Literal(false), Literal.create(null, BooleanType)))
222-
.analyze
223-
224-
comparePlans(optimized, correctAnswer)
225-
}
226-
227210
test("OptimizedIn test: In empty list gets transformed to `If` expression " +
228211
"when value is nullable") {
229212
val originalQuery =

0 commit comments

Comments
 (0)