Skip to content

Commit 23263e4

Browse files
committed
use select for all tests for SPARK-15204
1 parent 46ced5c commit 23263e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sql/core/src/test/scala/org/apache/spark/sql/DatasetAggregatorSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,12 @@ class DatasetAggregatorSuite extends QueryTest with SharedSQLContext {
306306
checkDataset(ds.select(MapTypeBufferAgg.toColumn), 1)
307307
}
308308

309-
test("spark-15204 improve nullability inference for Aggregator") {
309+
test("SPARK-15204 improve nullability inference for Aggregator") {
310310
val ds1 = Seq(1, 3, 2, 5).toDS()
311311
assert(ds1.select(typed.sum((i: Int) => i)).schema.head.nullable === false)
312312
val ds2 = Seq(AggData(1, "a"), AggData(2, "a")).toDS()
313-
assert(ds2.groupByKey(_.b).agg(SeqAgg.toColumn).schema(1).nullable === true)
313+
assert(ds2.select(SeqAgg.toColumn).schema.head.nullable === true)
314314
val ds3 = sql("SELECT 'Some String' AS b, 1279869254 AS a").as[AggData]
315-
assert(ds3.groupByKey(_.a).agg(NameAgg.toColumn).schema(1).nullable === true)
315+
assert(ds3.select(NameAgg.toColumn).schema.head.nullable === true)
316316
}
317317
}

0 commit comments

Comments
 (0)