Skip to content
Snippets Groups Projects
Commit 3750c6e9 authored by Tathagata Das's avatar Tathagata Das
Browse files

[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 <tathagata.das1565@gmail.com>

Closes #16183 from tdas/SPARK-18671-1.

(cherry picked from commit 5c6bcdbd)
Signed-off-by: default avatarTathagata Das <tathagata.das1565@gmail.com>
parent 9b5bc2a6
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,8 @@ class KafkaSourceOffsetSuite extends OffsetSuite with SharedSQLContext {
private def readFromResource(file: String): SerializedOffset = {
import scala.io.Source
val str = Source.fromFile(getClass.getResource(s"/structured-streaming/$file").toURI).mkString
val input = getClass.getResource(s"/$file").toURI
val str = Source.fromFile(input).mkString
SerializedOffset(str)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment