|
1 | 1 | --- |
2 | 2 | layout: global |
3 | | -title: Reference |
4 | | -displayTitle: Reference |
| 3 | +title: UDFs (User-Defined Functions) |
| 4 | +displayTitle: UDFs (User-Defined Functions) |
5 | 5 | license: | |
6 | 6 | Licensed to the Apache Software Foundation (ASF) under one or more |
7 | 7 | contributor license agreements. See the NOTICE file distributed with |
8 | 8 | this work for additional information regarding copyright ownership. |
9 | 9 | The ASF licenses this file to You under the Apache License, Version 2.0 |
10 | 10 | (the "License"); you may not use this file except in compliance with |
11 | 11 | the License. You may obtain a copy of the License at |
12 | | - |
| 12 | +
|
13 | 13 | http://www.apache.org/licenses/LICENSE-2.0 |
14 | | - |
| 14 | +
|
15 | 15 | Unless required by applicable law or agreed to in writing, software |
16 | 16 | distributed under the License is distributed on an "AS IS" BASIS, |
17 | 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
18 | 18 | See the License for the specific language governing permissions and |
19 | 19 | limitations under the License. |
20 | 20 | --- |
21 | 21 |
|
22 | | -Spark SQL is Apache Spark's module for working with structured data. |
23 | | -This guide is a reference for Structured Query Language (SQL) for Apache |
24 | | -Spark. This document describes the SQL constructs supported by Spark in detail |
25 | | -along with usage examples when applicable. |
| 22 | +User-Defined Functions (UDFs) are a feature of Spark SQL that allows users to define their own functions when the system's built-in functions are not enough to perform the desired task. To use UDFs in Spark SQL, users must first define the function, then register the function with Spark, and finally call the registered function. The User-Defined Functions can act on a single row or act on multiple rows at once. Spark SQL also supports integration of existing Hive implementations of UDFs, UDAFs and UDTFs. |
| 23 | + |
| 24 | +* [Scalar User-Defined Functions (UDFs)](sql-ref-functions-udf-scalar.html) |
| 25 | +* [User-Defined Aggregate Functions (UDAFs)](sql-ref-functions-udf-aggregate.html) |
| 26 | +* [Integration with Hive UDFs/UDAFs/UDTFs](sql-ref-functions-udf-hive.html) |
0 commit comments