Skip to content
Prev Previous commit
Next Next commit
rename
  • Loading branch information
dongjoon-hyun committed Sep 15, 2018
commit d35d01b66b1716333eeacfa13334c3b3d31ab931
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ class DataSourceV2Suite extends QueryTest with SharedSQLContext {
val sessionPath = path.getCanonicalPath
withSQLConf("spark.datasource.simpleWritableDataSource.path" -> sessionPath) {
withTempPath { file =>
val path = file.getCanonicalPath
val optionPath = file.getCanonicalPath
val format = classOf[SimpleWritableDataSource].getName

val df = Seq((1L, 2L)).toDF("i", "j")
df.write.format(format).option("path", path).save()
df.write.format(format).option("path", optionPath).save()
assert(!new File(sessionPath).exists)
checkAnswer(spark.read.format(format).option("path", path).load(), df)
checkAnswer(spark.read.format(format).option("path", optionPath).load(), df)
}
}
}
Expand Down