Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Sep 15, 2018
1 parent 96990c7 commit d35d01b
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit d35d01b

Please sign in to comment.