You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "Hisoka-X (via GitHub)" <gi...@apache.org> on 2023/08/28 01:14:54 UTC
[GitHub] [spark] Hisoka-X commented on a diff in pull request #42691: [SPARK-44978][SQL][TEST] Fix SQLQueryTestSuite unable create table normally
Hisoka-X commented on code in PR #42691:
URL: https://github.com/apache/spark/pull/42691#discussion_r1306796272
##########
sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:
##########
@@ -689,12 +689,10 @@ class SQLQueryTestSuite extends QueryTest with SharedSparkSession with SQLHelper
protected def createTestTables(session: SparkSession): Unit = {
import session.implicits._
- // Before creating test tables, deletes orphan directories in warehouse dir
- Seq("testdata", "arraydata", "mapdata", "aggtest", "onek", "tenk1").foreach { dirName =>
- val f = new File(new URI(s"${conf.warehousePath}/$dirName"))
- if (f.exists()) {
- Utils.deleteRecursively(f)
- }
+ // Before creating test tables, deletes warehouse dir
Review Comment:
Already are. When reach here, the warehouse dir would be `spark/spark-warehouse/org.apache.spark.sql.SQLQueryTestSuite`

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org