Skip to content

Commit 9e3085f

Browse files
committed
use withFunction
1 parent 84052f2 commit 9e3085f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sql/core/src/test/scala/org/apache/spark/sql/connector/KeyGroupedPartitioningSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class KeyGroupedPartitioningSuite extends DistributionAndOrderingSuiteBase with
7575
Column.create("dept_id", IntegerType),
7676
Column.create("data", StringType))
7777

78-
def withFunctions[T](fns: UnboundFunction*)(f: => T): T = {
78+
def withFunction[T](fns: UnboundFunction*)(f: => T): T = {
7979
val fnIds = catalog.listFunctions(Array.empty)
8080
val oldFns = fns.map { fn =>
8181
val id = Identifier.of(Array.empty, fn.name())
@@ -3447,7 +3447,7 @@ class KeyGroupedPartitioningSuite extends DistributionAndOrderingSuiteBase with
34473447
}
34483448

34493449
test("SPARK-56046: Reducers with different result types") {
3450-
withFunctions(UnboundDaysFunctionWithToYearsReducerWithDateResult) {
3450+
withFunction(UnboundDaysFunctionWithToYearsReducerWithDateResult) {
34513451
val items_partitions = Array(days("arrive_time"))
34523452
createTable(items, itemsColumns, items_partitions)
34533453
sql(s"INSERT INTO testcat.ns.$items VALUES " +
@@ -3486,7 +3486,7 @@ class KeyGroupedPartitioningSuite extends DistributionAndOrderingSuiteBase with
34863486
}
34873487

34883488
test("SPARK-56164: Reducers with different result types to original keys") {
3489-
withFunctions(
3489+
withFunction(
34903490
UnboundDaysFunctionWithToYearsReducerWithLongResult,
34913491
UnboundYearsFunctionWithToYearsReducerWithLongResult) {
34923492
val items_partitions = Array(days("arrive_time"))

0 commit comments

Comments
 (0)