Help Center/ Data Lake Insight/ Spark SQL Syntax Reference/ User-Defined Functions/ Deleting a Function
Updated on 2024-08-19 GMT+08:00
Deleting a Function
Function
This statement is used to delete functions.
Syntax
1 | DROP [TEMPORARY] FUNCTION [IF EXISTS] [db_name.] function_name; |
Keywords
- TEMPORARY: Indicates whether the function to be deleted is a temporary function.
- IF EXISTS: Used when the function to be deleted does not exist to avoid system errors.
Precautions
- An existing function is deleted. If the function to be deleted does not exist, the system reports an error.
- Only the HIVE syntax is supported.
Example
The mergeBill function is deleted.
1 | DROP FUNCTION mergeBill; |
Parent topic: User-Defined Functions
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.