Skip to content

Commit

Permalink
rebase against datasource package change
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-torres committed Dec 7, 2017
1 parent a9fbf33 commit 22d07cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import org.apache.spark.sql.streaming.StreamTest

class RateSourceV2Suite extends StreamTest {
test("microbatch in registry") {
DataSource.lookupDataSource("rate").newInstance() match {
DataSource.lookupDataSource("rate", spark.sqlContext.conf).newInstance() match {
case ds: MicroBatchReadSupport =>
val reader = ds.createMicroBatchReader(Optional.empty(), "", DataSourceV2Options.empty())
assert(reader.isInstanceOf[RateStreamV2Reader])
Expand Down Expand Up @@ -88,7 +88,7 @@ class RateSourceV2Suite extends StreamTest {
}

test("continuous in registry") {
DataSource.lookupDataSource("rate").newInstance() match {
DataSource.lookupDataSource("rate", spark.sqlContext.conf).newInstance() match {
case ds: ContinuousReadSupport =>
val reader = ds.createContinuousReader(Optional.empty(), "", DataSourceV2Options.empty())
assert(reader.isInstanceOf[ContinuousRateStreamReader])
Expand Down

0 comments on commit 22d07cd

Please sign in to comment.