-
- Downloads
[MINOR][SQL] Use resource path for test_script.sh
## What changes were proposed in this pull request? This PR modified the test case `test("script")` to use resource path for `test_script.sh`. Make the test case portable (even in IntelliJ). ## How was this patch tested? Passed the test case. Before: Run `test("script")` in IntelliJ: ``` Caused by: org.apache.spark.SparkException: Subprocess exited with status 127. Error: bash: src/test/resources/test_script.sh: No such file or directory ``` After: Test passed. Author: Weiqing Yang <yangweiqing001@gmail.com> Closes #15246 from weiqingy/hivetest.
Showing
- core/src/test/scala/org/apache/spark/SparkFunSuite.scala 11 additions, 0 deletionscore/src/test/scala/org/apache/spark/SparkFunSuite.scala
- core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala 3 additions, 3 deletions.../org/apache/spark/deploy/history/HistoryServerSuite.scala
- core/src/test/scala/org/apache/spark/ui/UISuite.scala 2 additions, 1 deletioncore/src/test/scala/org/apache/spark/ui/UISuite.scala
- sql/hive/src/test/scala/org/apache/spark/sql/catalyst/LogicalPlanToSQLSuite.scala 1 addition, 1 deletion...org/apache/spark/sql/catalyst/LogicalPlanToSQLSuite.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala 2 additions, 1 deletion...cala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala 9 additions, 6 deletions...a/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala
Loading
Please register or sign in to comment