Skip to content

Commit c64bf20

Browse files
committed
address comments
1 parent 757626f commit c64bf20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/DataSourceScanExecRedactionSuite.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*/
1717
package org.apache.spark.sql.execution
1818

19+
import java.io.File
20+
1921
import scala.collection.mutable
2022

2123
import org.apache.hadoop.fs.Path
@@ -127,7 +129,7 @@ class DataSourceScanExecRedactionSuite extends DataSourceScanRedactionTest {
127129
.write
128130
.partitionBy(partitionCol)
129131
.orc(dir)
130-
val paths = (0 to 9).map(i => s"$dir/$partitionCol=$i")
132+
val paths = (0 to 9).map(i => new File(dir, s"$partitionCol=$i").getCanonicalPath)
131133
val plan = spark.read.orc(paths: _*).queryExecution.executedPlan
132134
val location = plan collectFirst {
133135
case f: FileSourceScanExec => f.metadata("Location")

0 commit comments

Comments
 (0)