Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
richardc-db committed Apr 12, 2024
1 parent a84e8f4 commit b81accf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class SnapshotManagerSuite extends AnyFunSuite with MockFileSystemClientUtils {
// corrupt incomplete multi-part checkpoint
val corruptedCheckpointStatuses = FileNames.checkpointFileWithParts(logPath, 10, 5).asScala
.map(p => FileStatus.of(p.toString, 10, 10))
.take(4)
.take(4).toSeq
val deltas = deltaFileStatuses(10L to 13L)
testExpectedError[RuntimeException](
corruptedCheckpointStatuses ++ deltas,
Expand Down Expand Up @@ -666,7 +666,7 @@ class SnapshotManagerSuite extends AnyFunSuite with MockFileSystemClientUtils {
// _last_checkpoint refers to incomplete multi-part checkpoint
val corruptedCheckpointStatuses = FileNames.checkpointFileWithParts(logPath, 20, 5).asScala
.map(p => FileStatus.of(p.toString, 10, 10))
.take(4)
.take(4).toSeq
testExpectedError[RuntimeException](
files = corruptedCheckpointStatuses ++ deltaFileStatuses(10L to 20L) ++
singularCheckpointFileStatuses(Seq(10L)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ class DeltaTableReadsSuite extends AnyFunSuite with TestUtils {
Seq(TestRow(2), TestRow(2), TestRow(2)),
TestRow("2", "2", TestRow(2, 2L)),
"2"
) :: Nil)
) :: Nil).toSeq

checkTable(
path = path,
expectedAnswer = expectedAnswer,
readCols = readCols
readCols = readCols.toSeq
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ trait FileReadMetrics { self: Object =>
}
}

def getVersionsRead: Seq[Long] = versionsRead
def getVersionsRead: Seq[Long] = versionsRead.toSeq

def resetMetrics(): Unit = {
versionsRead.clear()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ object TestRow {
case _: StructType => TestRow(row.getStruct(i))
case _ => throw new UnsupportedOperationException("unrecognized data type")
}
})
}.toSeq)
}

def apply(row: SparkRow): TestRow = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ trait TestUtils extends Assertions with SQLHelper {
while (iter.hasNext) {
result.append(iter.next())
}
result
result.toSeq
} finally {
iter.close()
}
Expand Down Expand Up @@ -153,7 +153,7 @@ trait TestUtils extends Assertions with SQLHelper {
// for all primitive types
Seq(new Column((basePath :+ field.getName).asJava.toArray(new Array[String](0))));
case _ => Seq.empty
}
}.toSeq
}

def collectScanFileRows(scan: Scan, tableClient: TableClient = defaultTableClient): Seq[Row] = {
Expand Down Expand Up @@ -231,7 +231,7 @@ trait TestUtils extends Assertions with SQLHelper {
}
}
}
result
result.toSeq
}

/**
Expand Down Expand Up @@ -626,7 +626,7 @@ trait TestUtils extends Assertions with SQLHelper {
toSparkType(field.getDataType),
field.isNullable
)
})
}.toSeq)
}
}

Expand Down

0 comments on commit b81accf

Please sign in to comment.