Skip to content

Commit

Permalink
Minor: Change all file links to GitHub in document (#7768)
Browse files Browse the repository at this point in the history
  • Loading branch information
ongchi authored Oct 8, 2023
1 parent 219cfb4 commit 5e9dd44
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/source/library-user-guide/adding-udfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ User Defined Functions (UDFs) are functions that can be used in the context of D

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

| UDF Type | Description | Example |
| --------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| Scalar | A function that takes a row of data and returns a single value. | [simple_udf.rs](../../../datafusion-examples/examples/simple_udf.rs) |
| 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](../../../datafusion-examples/examples/simple_udwf.rs) |
| Aggregate | A function that takes a group of rows and returns a single value. | [simple_udaf.rs](../../../datafusion-examples/examples/simple_udaf.rs) |
| UDF Type | Description | Example |
| --------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| Scalar | A function that takes a row of data and returns a single value. | [simple_udf.rs](https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/simple_udf.rs) |
| 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](https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/simple_udwf.rs) |
| Aggregate | A function that takes a group of rows and returns a single value. | [simple_udaf.rs](https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/simple_udaf.rs) |

First we'll talk about adding an Scalar UDF end-to-end, then we'll talk about the differences between the different types of UDFs.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/library-user-guide/catalogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# Catalogs, Schemas, and Tables

This section describes how to create and manage catalogs, schemas, and tables in DataFusion. For those wanting to dive into the code quickly please see the [example](../../../datafusion-examples/examples/catalog.rs).
This section describes how to create and manage catalogs, schemas, and tables in DataFusion. For those wanting to dive into the code quickly please see the [example](https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/catalog.rs).

## General Concepts

Expand Down
4 changes: 2 additions & 2 deletions docs/source/library-user-guide/working-with-exprs.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ As the writer of a library, you may want to use or create `Expr`s to represent c

There are also executable examples for working with `Expr`s:

- [rewrite_expr.rs](../../../datafusion-examples/examples/catalog.rs)
- [expr_api.rs](../../../datafusion-examples/examples/expr_api.rs)
- [rewrite_expr.rs](https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/rewrite_expr.rs)
- [expr_api.rs](https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/expr_api.rs)

## A Scalar UDF Example

Expand Down
4 changes: 2 additions & 2 deletions docs/source/user-guide/example-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

# Example Usage

In this example some simple processing is performed on the [`example.csv`](../../../datafusion/core/tests/data/example.csv) file.
In this example some simple processing is performed on the [`example.csv`](https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/tests/data/example.csv) file.

Even [`more code examples`](../../../datafusion-examples) attached to the project
Even [`more code examples`](https://github.com/apache/arrow-datafusion/tree/main/datafusion-examples) attached to the project.

## Update `Cargo.toml`

Expand Down

0 comments on commit 5e9dd44

Please sign in to comment.