imback82 commented on a change in pull request #34610:
URL: https://github.com/apache/spark/pull/34610#discussion_r753744196
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
##########
@@ -778,18 +778,6 @@ abstract class DDLSuite extends QueryTest with
SQLTestUtils {
Row("Properties", "((a,a), (b,b), (c,c), (d,d))") :: Nil)
withTempDir { tmpDir =>
- if (isUsingHiveMetastore) {
- val e1 = intercept[AnalysisException] {
- sql(s"ALTER DATABASE $dbName SET LOCATION '${tmpDir.toURI}'")
- }
- assert(e1.getMessage.contains("does not support altering database
location"))
- } else {
- sql(s"ALTER DATABASE $dbName SET LOCATION '${tmpDir.toURI}'")
- val uriInCatalog =
catalog.getDatabaseMetadata(dbNameWithoutBackTicks).locationUri
- assert("file" === uriInCatalog.getScheme)
- assert(new Path(tmpDir.getPath).toUri.getPath ===
uriInCatalog.getPath)
- }
-
intercept[NoSuchDatabaseException] {
sql(s"ALTER DATABASE `db-not-exist` SET LOCATION
'${tmpDir.toURI}'")
Review comment:
thanks, forgot to remove these.
--
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]