yaooqinn commented on a change in pull request #26080: [SPARK-29425][SQL] The 
ownership of a database should be respected
URL: https://github.com/apache/spark/pull/26080#discussion_r337613300
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala
 ##########
 @@ -178,13 +178,14 @@ case class DescribeDatabaseCommand(
         Row("Location", CatalogUtils.URIToString(dbMetadata.locationUri)) :: 
Nil
 
     if (extended) {
-      val properties =
-        if (dbMetadata.properties.isEmpty) {
+      val properties = dbMetadata.properties -- Seq("ownerName", "ownerType")
 
 Review comment:
   hive show these in the same level as database name and location in columns,  
see 
https://github.com/apache/hive/blob/fac9ee9099bb4ed8adc921c08e88721f64fd0bd8/ql/src/test/results/clientpositive/describe_database.q.out#L13.
 We may show them in two different rows after location

----------------------------------------------------------------
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]

Reply via email to