Skip to content

Commit 003485c

Browse files
committed
Fix test
1 parent c81c039 commit 003485c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/BatchScanExec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ case class BatchScanExec(
237237

238238
case _ => filteredPartitions
239239
}
240+
240241
new DataSourceRDD(
241242
sparkContext, finalPartitions, readerFactory, supportsColumnar, customMetrics)
242243
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ class KeyGroupedPartitioningSuite extends DistributionAndOrderingSuiteBase {
15491549
Row(3, 4, 2, 2, "ad", "04"),
15501550
Row(4, 3, 3, 3, "ae", "05"),
15511551
Row(5, 2, 4, 4, "af", "06"),
1552-
Row(6, 1, 5, 5, "ag", "07"),
1552+
Row(6, 1, 5, 5, "ag", "07")
15531553
))
15541554
}
15551555
}

sql/core/src/test/scala/org/apache/spark/sql/connector/catalog/functions/transformFunctions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ object BucketFunction extends ReducibleFunction[Int, Int] {
9191
otherNumBuckets: Option[_]): Option[Reducer[Int]] = {
9292
(thisNumBuckets, otherNumBuckets) match {
9393
case (Some(thisNumBucketsVal: Int), Some(otherNumBucketsVal: Int))
94-
if func.isInstanceOf[ReducibleFunction[_, _]] &&
94+
if func == BucketFunction &&
9595
((thisNumBucketsVal > otherNumBucketsVal) &&
9696
(thisNumBucketsVal % otherNumBucketsVal == 0)) =>
9797
Some(BucketReducer(thisNumBucketsVal, otherNumBucketsVal))

0 commit comments

Comments
 (0)