HeartSaVioR commented on a change in pull request #27107: [SPARK-30436][SQL]
Allow CREATE EXTERNAL TABLE with only requiring LOCATION
URL: https://github.com/apache/spark/pull/27107#discussion_r363281706
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLParserSuite.scala
##########
@@ -769,8 +767,9 @@ class DDLParserSuite extends AnalysisTest with
SharedSparkSession {
test("create table - external") {
val query = "CREATE EXTERNAL TABLE tab1 (id int, name string) LOCATION
'/path/to/nowhere'"
- val e = intercept[ParseException] { parser.parsePlan(query) }
- assert(e.message.contains("Operation not allowed: CREATE EXTERNAL TABLE
..."))
+ val (desc, _) = extractTableDesc(query)
Review comment:
The test was changed to deny the statement - we are reverting this.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]