Skip to content

Commit b81accf

Browse files
committed
fix compile
1 parent a84e8f4 commit b81accf

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

kernel/kernel-api/src/test/scala/io/delta/kernel/internal/SnapshotManagerSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ class SnapshotManagerSuite extends AnyFunSuite with MockFileSystemClientUtils {
617617
// corrupt incomplete multi-part checkpoint
618618
val corruptedCheckpointStatuses = FileNames.checkpointFileWithParts(logPath, 10, 5).asScala
619619
.map(p => FileStatus.of(p.toString, 10, 10))
620-
.take(4)
620+
.take(4).toSeq
621621
val deltas = deltaFileStatuses(10L to 13L)
622622
testExpectedError[RuntimeException](
623623
corruptedCheckpointStatuses ++ deltas,
@@ -666,7 +666,7 @@ class SnapshotManagerSuite extends AnyFunSuite with MockFileSystemClientUtils {
666666
// _last_checkpoint refers to incomplete multi-part checkpoint
667667
val corruptedCheckpointStatuses = FileNames.checkpointFileWithParts(logPath, 20, 5).asScala
668668
.map(p => FileStatus.of(p.toString, 10, 10))
669-
.take(4)
669+
.take(4).toSeq
670670
testExpectedError[RuntimeException](
671671
files = corruptedCheckpointStatuses ++ deltaFileStatuses(10L to 20L) ++
672672
singularCheckpointFileStatuses(Seq(10L)),

kernel/kernel-defaults/src/test/scala/io/delta/kernel/defaults/DeltaTableReadsSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ class DeltaTableReadsSuite extends AnyFunSuite with TestUtils {
296296
Seq(TestRow(2), TestRow(2), TestRow(2)),
297297
TestRow("2", "2", TestRow(2, 2L)),
298298
"2"
299-
) :: Nil)
299+
) :: Nil).toSeq
300300

301301
checkTable(
302302
path = path,
303303
expectedAnswer = expectedAnswer,
304-
readCols = readCols
304+
readCols = readCols.toSeq
305305
)
306306
}
307307

kernel/kernel-defaults/src/test/scala/io/delta/kernel/defaults/LogReplayMetricsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ trait FileReadMetrics { self: Object =>
342342
}
343343
}
344344

345-
def getVersionsRead: Seq[Long] = versionsRead
345+
def getVersionsRead: Seq[Long] = versionsRead.toSeq
346346

347347
def resetMetrics(): Unit = {
348348
versionsRead.clear()

kernel/kernel-defaults/src/test/scala/io/delta/kernel/defaults/utils/TestRow.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ object TestRow {
110110
case _: StructType => TestRow(row.getStruct(i))
111111
case _ => throw new UnsupportedOperationException("unrecognized data type")
112112
}
113-
})
113+
}.toSeq)
114114
}
115115

116116
def apply(row: SparkRow): TestRow = {

kernel/kernel-defaults/src/test/scala/io/delta/kernel/defaults/utils/TestUtils.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ trait TestUtils extends Assertions with SQLHelper {
7373
while (iter.hasNext) {
7474
result.append(iter.next())
7575
}
76-
result
76+
result.toSeq
7777
} finally {
7878
iter.close()
7979
}
@@ -153,7 +153,7 @@ trait TestUtils extends Assertions with SQLHelper {
153153
// for all primitive types
154154
Seq(new Column((basePath :+ field.getName).asJava.toArray(new Array[String](0))));
155155
case _ => Seq.empty
156-
}
156+
}.toSeq
157157
}
158158

159159
def collectScanFileRows(scan: Scan, tableClient: TableClient = defaultTableClient): Seq[Row] = {
@@ -231,7 +231,7 @@ trait TestUtils extends Assertions with SQLHelper {
231231
}
232232
}
233233
}
234-
result
234+
result.toSeq
235235
}
236236

237237
/**
@@ -626,7 +626,7 @@ trait TestUtils extends Assertions with SQLHelper {
626626
toSparkType(field.getDataType),
627627
field.isNullable
628628
)
629-
})
629+
}.toSeq)
630630
}
631631
}
632632

0 commit comments

Comments
 (0)