[ 
https://issues.apache.org/jira/browse/SPARK-32665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun resolved SPARK-32665.
-----------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 29488
[https://github.com/apache/spark/pull/29488]

> Deletes orphan directories under a warehouse dir in SQLQueryTestSuite
> ---------------------------------------------------------------------
>
>                 Key: SPARK-32665
>                 URL: https://issues.apache.org/jira/browse/SPARK-32665
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL, Tests
>    Affects Versions: 3.1.0
>            Reporter: Takeshi Yamamuro
>            Assignee: Takeshi Yamamuro
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> In case that a last SQLQueryTestSuite test run is killed, it will fail in a 
> next run because of a following reason:
> {code}
> [info] org.apache.spark.sql.SQLQueryTestSuite *** ABORTED *** (17 seconds, 
> 483 milliseconds)
> [info]   org.apache.spark.sql.AnalysisException: Can not create the managed 
> table('`testdata`'). The associated 
> location('file:/Users/maropu/Repositories/spark/spark-master/sql/core/spark-warehouse/org.apache.spark.sql.SQLQueryTestSuite/testdata')
>  already exists.;
> [info]   at 
> org.apache.spark.sql.catalyst.catalog.SessionCatalog.validateTableLocation(SessionCatalog.scala:355)
> [info]   at 
> org.apache.spark.sql.execution.command.CreateDataSourceTableAsSelectCommand.run(createDataSourceTables.scala:170)
> [info]   at 
> org.apache.spark.sql.execution.command.DataWritingCommandExec.sideEffectResult$lzycompute(commands.scala:108)
> {code}
> This ticket targets at adding code to deletes orphan directories under a 
> warehouse dir in SQLQueryTestSuite before creating test tables.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to