imback82 commented on a change in pull request #34704:
URL: https://github.com/apache/spark/pull/34704#discussion_r756517802
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
##########
@@ -375,6 +375,11 @@ abstract class DDLSuite extends QueryTest with
SQLTestUtils {
val path = new Path(tmpDir.getCanonicalPath).toUri
databaseNames.foreach { dbName =>
try {
+ val e = intercept[IllegalArgumentException] {
+ sql(s"CREATE DATABASE $dbName Location ''")
+ }
+ assert(e.getMessage.contains("Can not create a Path from an empty
string"))
Review comment:
This is just adding a test coverage for v1 command.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]