Skip to content

Commit 5c6bcdb

Browse files
committed
[SPARK-18671][SS][TEST-MAVEN] Follow up PR to fix test for Maven
## What changes were proposed in this pull request? Maven compilation seem to not allow resource is sql/test to be easily referred to in kafka-0-10-sql tests. So moved the kafka-source-offset-version-2.1.0 from sql test resources to kafka-0-10-sql test resources. ## How was this patch tested? Manually ran maven test Author: Tathagata Das <[email protected]> Closes #16183 from tdas/SPARK-18671-1.
1 parent 08d6441 commit 5c6bcdb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceOffsetSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ class KafkaSourceOffsetSuite extends OffsetSuite with SharedSQLContext {
9898

9999
private def readFromResource(file: String): SerializedOffset = {
100100
import scala.io.Source
101-
val str = Source.fromFile(getClass.getResource(s"/structured-streaming/$file").toURI).mkString
101+
val input = getClass.getResource(s"/$file").toURI
102+
val str = Source.fromFile(input).mkString
102103
SerializedOffset(str)
103104
}
104105
}

0 commit comments

Comments
 (0)