From 8c9b9152c8201d8b75d8e0b9b85b85d3199c94d8 Mon Sep 17 00:00:00 2001 From: Jonathan Chen <86070045+jonathanc-n@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:41:04 -0400 Subject: [PATCH] Minor: Fixed regexpr_match docs (#13008) * regexp_match * update generated docs --------- Co-authored-by: Andrew Lamb --- datafusion/functions/src/regex/regexpmatch.rs | 2 +- docs/source/user-guide/sql/scalar_functions_new.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion/functions/src/regex/regexpmatch.rs b/datafusion/functions/src/regex/regexpmatch.rs index 443e50533268..4a86adbe683a 100644 --- a/datafusion/functions/src/regex/regexpmatch.rs +++ b/datafusion/functions/src/regex/regexpmatch.rs @@ -119,7 +119,7 @@ fn get_regexp_match_doc() -> &'static Documentation { DOCUMENTATION.get_or_init(|| { Documentation::builder() .with_doc_section(DOC_SECTION_REGEX) - .with_description("Returns a list of [regular expression](https://docs.rs/regex/latest/regex/#syntax) matches in a string.") + .with_description("Returns the first [regular expression](https://docs.rs/regex/latest/regex/#syntax) matche in a string.") .with_syntax_example("regexp_match(str, regexp[, flags])") .with_sql_example(r#"```sql > select regexp_match('Köln', '[a-zA-Z]ö[a-zA-Z]{2}'); diff --git a/docs/source/user-guide/sql/scalar_functions_new.md b/docs/source/user-guide/sql/scalar_functions_new.md index ca70c83e58f9..1915623012f4 100644 --- a/docs/source/user-guide/sql/scalar_functions_new.md +++ b/docs/source/user-guide/sql/scalar_functions_new.md @@ -1752,7 +1752,7 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo ### `regexp_match` -Returns a list of [regular expression](https://docs.rs/regex/latest/regex/#syntax) matches in a string. +Returns the first [regular expression](https://docs.rs/regex/latest/regex/#syntax) matche in a string. ``` regexp_match(str, regexp[, flags])