From 43713bab83872033825e32eb59eab4e082177195 Mon Sep 17 00:00:00 2001 From: Jonathan Chen Date: Mon, 11 Nov 2024 20:28:48 -0500 Subject: [PATCH] fix ci (#13367) --- datafusion/functions-nested/src/concat.rs | 4 +++- docs/source/user-guide/sql/scalar_functions.md | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/datafusion/functions-nested/src/concat.rs b/datafusion/functions-nested/src/concat.rs index 1bdcf74aee2a7..4aa6bb5da9b24 100644 --- a/datafusion/functions-nested/src/concat.rs +++ b/datafusion/functions-nested/src/concat.rs @@ -195,8 +195,10 @@ impl ScalarUDFImpl for ArrayPrepend { } } +static DOCUMENTATION_PREPEND: OnceLock = 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( diff --git a/docs/source/user-guide/sql/scalar_functions.md b/docs/source/user-guide/sql/scalar_functions.md index 490462909b59a..e9cd2bba7d11e 100644 --- a/docs/source/user-guide/sql/scalar_functions.md +++ b/docs/source/user-guide/sql/scalar_functions.md @@ -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