sandeep-katta commented on a change in pull request #25452:
[SPARK-28710][SQL]to fix replace function, spark should call drop and create
function
URL: https://github.com/apache/spark/pull/25452#discussion_r314600974
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/functions.scala
##########
@@ -82,8 +82,11 @@ case class CreateFunctionCommand(
} else {
// Handles `CREATE OR REPLACE FUNCTION AS ... USING ...`
if (replace && catalog.functionExists(func.identifier)) {
- // alter the function in the metastore
- catalog.alterFunction(func)
Review comment:
HiveExternalCatalog is for Hive only, currently alter function of Hive does
not update the resource
----------------------------------------------------------------
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]