From dcda1b87e9b0071111aa16ab174f1394aaa47ecd Mon Sep 17 00:00:00 2001 From: Cheng-Yuan-Lai Date: Sun, 29 Dec 2024 17:04:35 +0800 Subject: [PATCH] fix: fix typo and update function docs --- datafusion/functions/src/string/chr.rs | 2 +- docs/source/user-guide/sql/scalar_functions.md | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/datafusion/functions/src/string/chr.rs b/datafusion/functions/src/string/chr.rs index 811463ba0ab82..3530e3f22c0f7 100644 --- a/datafusion/functions/src/string/chr.rs +++ b/datafusion/functions/src/string/chr.rs @@ -72,7 +72,7 @@ pub fn chr(args: &[ArrayRef]) -> Result { | 🚀 | +--------------------+ ```"#, - standard_argument(name = "str", prefix = "String"), + standard_argument(name = "expression", prefix = "String"), related_udf(name = "ascii") )] #[derive(Debug)] diff --git a/docs/source/user-guide/sql/scalar_functions.md b/docs/source/user-guide/sql/scalar_functions.md index be4f5e56b3af3..7e2f824786242 100644 --- a/docs/source/user-guide/sql/scalar_functions.md +++ b/docs/source/user-guide/sql/scalar_functions.md @@ -852,10 +852,6 @@ btrim(str[, trim_str]) #### Alternative Syntax -```sql -trim(BOTH trim_str FROM str) -``` - ```sql trim(trim_str FROM str) ```