Skip to content

Commit 86a91ea

Browse files
committed
fix: drop unused binding in cache statistics test
scalafix RemoveUnused rejects the named relation parameter, which this test does not use. Spotless does not catch it, so it only surfaced in the Lint Java jobs.
1 parent 2f79c43 commit 86a91ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spark/src/test/scala/org/apache/comet/exec/CometInMemoryCacheSuite.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ class CometInMemoryCacheSuite extends CometTestBase {
10851085
test("Comet in-memory cache records per-column sizes in its statistics") {
10861086
// SimpleMetricsCachedBatch reserves a fifth field per column for its size. Each column is now
10871087
// its own stream, so the real size is known and must be reported rather than left at zero.
1088-
withProjectionCache { (relation, batches) =>
1088+
withProjectionCache { (_, batches) =>
10891089
batches.foreach { batch =>
10901090
val sizes = CometCachedBatchHelper.columnStreamSizes(batch)
10911091
val stats = batch.asInstanceOf[SimpleMetricsCachedBatch].stats

0 commit comments

Comments
 (0)