Skip to content

Commit

Permalink
fix ci (#13367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanc-n authored Nov 12, 2024
1 parent 382ba2b commit cadeb53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion datafusion/functions-nested/src/concat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ impl ScalarUDFImpl for ArrayPrepend {
}
}

static DOCUMENTATION_PREPEND: OnceLock<Documentation> = OnceLock::new();

fn get_array_prepend_doc() -> &'static Documentation {
DOCUMENTATION.get_or_init(|| {
DOCUMENTATION_PREPEND.get_or_init(|| {
Documentation::builder()
.with_doc_section(DOC_SECTION_ARRAY)
.with_description(
Expand Down
12 changes: 6 additions & 6 deletions docs/source/user-guide/sql/scalar_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3089,18 +3089,18 @@ array_prepend(element, array)

#### Arguments

- **element**: Element to append to the array.
- **element**: Element to prepend to the array.
- **array**: Array expression. Can be a constant, column, or function, and any combination of array operators.

#### Example

```sql
> select array_prepend(1, [2, 3, 4]);
+--------------------------------------+
| array_prepend(Int64(1), List([2,3,4])) |
+--------------------------------------+
| [1, 2, 3, 4] |
+--------------------------------------+
+---------------------------------------+
| array_prepend(Int64(1),List([2,3,4])) |
+---------------------------------------+
| [1, 2, 3, 4] |
+---------------------------------------+
```

#### Aliases
Expand Down

0 comments on commit cadeb53

Please sign in to comment.