Skip to content

Commit

Permalink
[SPARK-18671][SS][TEST-MAVEN] Follow up PR to fix test for Maven
Browse files Browse the repository at this point in the history
## 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 apache#16183 from tdas/SPARK-18671-1.
  • Loading branch information
tdas authored and uzadude committed Jan 27, 2017
1 parent beae8a1 commit 3e8a262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 3e8a262

Please sign in to comment.