Github user windpiger commented on a diff in the pull request:
https://github.com/apache/spark/pull/17057#discussion_r102916099
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
---
@@ -1952,4 +1952,54 @@ class DDLSuite extends QueryTest with
SharedSQLContext with BeforeAndAfterEach {
}
}
}
+
+ test("CTAS for managed data source table with a created default location
throw an exception") {
+ withTable("t", "t1", "t2") {
+ val warehousePath =
spark.sharedState.warehousePath.stripPrefix("file:")
+ val tFile = new File(warehousePath, "t")
--- End diff --
there are lots of non-existent default location test cases, so here we just
add existed default location test cases
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]