cxzl25 commented on a change in pull request #33114:
URL: https://github.com/apache/spark/pull/33114#discussion_r661105029
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
##########
@@ -925,19 +925,19 @@ private[hive] class HiveClientImpl(
}
override def createFunction(db: String, func: CatalogFunction): Unit =
withHiveState {
- shim.createFunction(client, db, func)
+ shim.createFunction(client, db, func, userName)
}
override def dropFunction(db: String, name: String): Unit = withHiveState {
shim.dropFunction(client, db, name)
}
override def renameFunction(db: String, oldName: String, newName: String):
Unit = withHiveState {
- shim.renameFunction(client, db, oldName, newName)
+ shim.renameFunction(client, db, oldName, newName, userName)
}
override def alterFunction(db: String, func: CatalogFunction): Unit =
withHiveState {
- shim.alterFunction(client, db, func)
+ shim.alterFunction(client, db, func, userName)
Review comment:
I checked, Hive/Spark does not have the syntax of alter function,
although the api is provided in the hive meta store.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-CreateFunction
If `alterFunction` does not pass the owner name, this will lose the owner
name.
Or do not pass the current user name when `alterFunction`?
--
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]