From d35d01b66b1716333eeacfa13334c3b3d31ab931 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Sat, 15 Sep 2018 12:54:48 -0700 Subject: [PATCH] rename --- .../org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala b/sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala index 0358cb79d0a07..7cc8abc9f0428 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala @@ -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) } } }