Skip to content

Commit 803bf0a

Browse files
committed
Update FilterPushdownSuite.scala
1 parent c3ec848 commit 803bf0a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,28 +1212,22 @@ class FilterPushdownSuite extends PlanTest {
12121212
test("push down predicate through expand") {
12131213
val input = LocalRelation('a.int, 'b.string, 'c.double)
12141214
val query =
1215-
Aggregate(
1216-
Seq('a, 'b),
1217-
Seq(sum('c).as("sum")),
12181215
Filter('a > 1,
12191216
Expand(
12201217
Seq(
12211218
Seq('a, 'b, 'c, Literal.create(null, StringType), 1),
12221219
Seq('a, 'b, 'c, 'a, 2)),
12231220
Seq('a, 'b, 'c),
1224-
input))).analyze
1221+
input)).analyze
12251222
val optimized = Optimize.execute(query)
12261223

12271224
val expected =
1228-
Aggregate(
1229-
Seq('a, 'b),
1230-
Seq(sum('c).as("sum")),
12311225
Expand(
12321226
Seq(
12331227
Seq('a, 'b, 'c, Literal.create(null, StringType), 1),
12341228
Seq('a, 'b, 'c, 'a, 2)),
12351229
Seq('a, 'b, 'c),
1236-
Filter('a > 1, input))).analyze
1230+
Filter('a > 1, input)).analyze
12371231

12381232
comparePlans(optimized, expected)
12391233
}

0 commit comments

Comments
 (0)