Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/21655#discussion_r198752208
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
---
@@ -441,6 +441,24 @@ abstract class DDLSuite extends QueryTest with
SQLTestUtils {
}
}
+ test ("rename a managed table with existing empty directory") {
+ val tableLoc = new
File(spark.sessionState.catalog.defaultTablePath(TableIdentifier("tab2")))
+ try {
+ withTable("tab1") {
+ sql(s"CREATE TABLE tab1 USING ${dataSource} AS SELECT 1, 'a'")
--- End diff --
nit: `${dataSource} ` -> `$dataSource`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]