Skip to content

Commit

Permalink
update ut (apache#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxin2012 committed Dec 2, 2021
1 parent ab17883 commit 914417c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ trait PlanStabilitySuite extends TPCDSBase with DisableAdaptiveExecutionSuite {
private val regenerateGoldenFiles: Boolean = System.getenv("SPARK_GENERATE_GOLDEN_FILES") == "1"

protected val baseResourcePath = {
val sparkHome = sys.props.getOrElse("spark.test.home", fail("spark.test.home is not set!"))
// use the same way as `SQLQueryTestSuite` to get the resource path
java.nio.file.Paths.get("src", "test", "resources", "tpcds-plan-stability").toFile
java.nio.file.Paths.get(sparkHome, "sql", "core", "src", "test", "resources", "tpcds-plan-stability").toFile
}

private val referenceRegex = "#\\d+".r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class TPCDSQueryTestSuite extends QueryTest with TPCDSBase with SQLQueryTestHelp

protected val baseResourcePath = {
// use the same way as `SQLQueryTestSuite` to get the resource path
java.nio.file.Paths.get("src", "test", "resources", "tpcds-query-results")
val sparkHome = sys.props.getOrElse("spark.test.home", fail("spark.test.home is not set!"))
java.nio.file.Paths.get(sparkHome, "sql", "core", "src", "test", "resources", "tpcds-query-results")
.toFile.getAbsolutePath
}

Expand Down

0 comments on commit 914417c

Please sign in to comment.