Skip to content

Commit 6e70fdd

Browse files
committed
update
1 parent 9adc722 commit 6e70fdd

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

core/src/test/scala/org/apache/spark/SparkFunSuite.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,6 @@ abstract class SparkFunSuite
121121
file
122122
}
123123

124-
/**
125-
* Get a Path relative to the project. It is assumed that tests are executed
126-
* from the project's root directory, so the returned path is simply a relative
127-
* path composed of the given elements.
128-
*/
129-
protected final def getProjectFilePath(first: String, more: String*): Path = {
130-
java.nio.file.Paths.get(first, more: _*)
131-
}
132-
133124
/**
134125
* Get a Path relative to the root project. It is assumed that a spark home is set.
135126
*/

sql/core/src/test/scala/org/apache/spark/sql/PlanStabilitySuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ trait PlanStabilitySuite extends TPCDSBase with DisableAdaptiveExecutionSuite {
8484

8585
protected val baseResourcePath = {
8686
// use the same way as `SQLQueryTestSuite` to get the resource path
87-
getProjectFilePath("src", "test", "resources", "tpcds-plan-stability").toFile
87+
getWorkspaceFilePath("sql", "core", "src", "test", "resources", "tpcds-plan-stability").toFile
8888
}
8989

9090
private val referenceRegex = "#\\d+".r

sql/core/src/test/scala/org/apache/spark/sql/TPCDSQueryTestSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class TPCDSQueryTestSuite extends QueryTest with TPCDSBase with SQLQueryTestHelp
7979

8080
protected val baseResourcePath = {
8181
// use the same way as `SQLQueryTestSuite` to get the resource path
82-
getProjectFilePath("src", "test", "resources", "tpcds-query-results")
82+
getWorkspaceFilePath("sql", "core", "src", "test", "resources", "tpcds-query-results")
8383
.toFile.getAbsolutePath
8484
}
8585

0 commit comments

Comments
 (0)