From 5cf12af95510dc3ac3b102c3fcc0e7f0c0623553 Mon Sep 17 00:00:00 2001 From: rtrivedi Date: Thu, 13 Aug 2026 21:40:53 -0500 Subject: [PATCH] HIVE-29421: Enrich documentation for the CREATE FUNCTION to highlight potential security risk --- content/docs/latest/language/languagemanual-ddl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/latest/language/languagemanual-ddl.md b/content/docs/latest/language/languagemanual-ddl.md index 68a26d33..2878e191 100644 --- a/content/docs/latest/language/languagemanual-ddl.md +++ b/content/docs/latest/language/languagemanual-ddl.md @@ -1530,7 +1530,7 @@ CREATE TEMPORARY FUNCTION function_name AS class_name; ``` -This statement lets you create a function that is implemented by the class_name. You can use this function in Hive queries as long as the session lasts. You can use any class that is in the class path of Hive. You can add jars to class path by executing 'ADD JAR' statements. Please refer to the CLI section [Hive Interactive Shell Commands]({{< ref "#hive-interactive-shell-commands" >}}), including [Hive Resources]({{< ref "#hive-resources" >}}), for more information on how to add/delete files from the Hive classpath. Using this, you can register User Defined Functions (UDF's). +This statement lets you create a function that is implemented by the class_name. You can use this function in Hive queries as long as the session lasts. You can use any class that is in the class path of Hive. You can add jars to class path by executing 'ADD JAR' statements. Please refer to the CLI section [Hive Interactive Shell Commands]({{< ref "#hive-interactive-shell-commands" >}}), including [Hive Resources]({{< ref "#hive-resources" >}}), for more information on how to add/delete files from the Hive classpath. Using this, you can register User Defined Functions (UDF's). Only trusted administrators should have this privilege; it allows executing arbitrary Java code from the Hive classpath. Also see [Hive Plugins]({{< ref "hiveplugins" >}}) for general information about creating custom UDFs.