Skip to content

Commit 68debd5

Browse files
committed
pretty doc
1 parent 6f05ec3 commit 68debd5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/source/library-user-guide/functions/adding-udfs.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ User Defined Functions (UDFs) are functions that can be used in the context of D
2323

2424
This page covers how to add UDFs to DataFusion. In particular, it covers how to add Scalar, Window, and Aggregate UDFs.
2525

26-
| UDF Type | Description | Example |
27-
| ------------ | ---------------------------------------------------------------------------------------------------------- | ------------------- |
28-
| Scalar | A function that takes a row of data and returns a single value. | [simple_udf.rs][1] |
29-
| Window | A function that takes a row of data and returns a single value, but also has access to the rows around it. | [simple_udwf.rs][2] |
30-
| Aggregate | A function that takes a group of rows and returns a single value. | [simple_udaf.rs][3] |
31-
| Table | A function that takes parameters and returns a `TableProvider` to be used in an query plan. | [simple_udtf.rs][4] |
26+
| UDF Type | Description | Example |
27+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
28+
| Scalar | A function that takes a row of data and returns a single value. | [simple_udf.rs][1] |
29+
| Window | A function that takes a row of data and returns a single value, but also has access to the rows around it. | [simple_udwf.rs][2] |
30+
| Aggregate | A function that takes a group of rows and returns a single value. | [simple_udaf.rs][3] |
31+
| Table | A function that takes parameters and returns a `TableProvider` to be used in an query plan. | [simple_udtf.rs][4] |
3232
| Async Scalar | A scalar function that natively supports asynchronous execution, allowing you to perform async operations (such as network or I/O calls) within the UDF. | [async_udf.rs][5] |
3333

3434
First we'll talk about adding an Scalar UDF end-to-end, then we'll talk about the differences between the different
@@ -460,7 +460,6 @@ SELECT async_upper('datafusion');
460460

461461
For async UDF implementation details, see [`async_udf.rs`](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/async_udf.rs).
462462

463-
464463
[`scalarudf`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/struct.ScalarUDF.html
465464
[`create_udf`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/fn.create_udf.html
466465
[`process_scalar_func_inputs`]: https://docs.rs/datafusion/latest/datafusion/physical_expr/functions/fn.process_scalar_func_inputs.html

0 commit comments

Comments
 (0)