Help Center/ AI DataLake/ devg/ Spark UDF Development Guide/ Calling Remote UDAFs in Spark SQL Jobs/ Using Remote UDAFs/ Calling a Function Using SQL
Updated on 2026-11-06 GMT+08:00
Calling a Function Using SQL
Description
Calls a specified function.
Syntax
SELECT function_name(column_name) FROM table_name;
Requirements
None
Keywords
function_name: The name of the function created on FunctionGraph.
Example
Call the sample function remote_udaf to return the average value of real_stock_rate.
1 | SELECT remote_udaf(real_stock_rate) FROM dw_ad_estimate_real_stock_rate LIMIT 1000; |
Parent topic: Using Remote UDAFs
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.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot