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])