Skip to content

Commit f4d1990

Browse files
authored
docs: Minor grammatical fixes for the scalar UDF docs (#16618)
1 parent f65da24 commit f4d1990

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ types of UDFs.
3636

3737
## Adding a Scalar UDF
3838

39-
A Scalar UDF is a function that takes a row of data and returns a single value. In order for good performance
39+
A Scalar UDF is a function that takes a row of data and returns a single value. To achieve good performance,
4040
such functions are "vectorized" in DataFusion, meaning they get one or more Arrow Arrays as input and produce
4141
an Arrow Array with the same number of rows as output.
4242

@@ -48,8 +48,8 @@ To create a Scalar UDF, you
4848

4949
In the following example, we will add a function takes a single i64 and returns a single i64 with 1 added to it:
5050

51-
For brevity, we'll skipped some error handling, but e.g. you may want to check that `args.len()` is the expected number
52-
of arguments.
51+
For brevity, we'll skip some error handling.
52+
For production code, you may want to check, for example, that `args.len()` matches the expected number of arguments.
5353

5454
### Adding by `impl ScalarUDFImpl`
5555

0 commit comments

Comments
 (0)