Skip to content

Apache DataFusion SQL Query Engine

Minor: Fixed regexpr_match docs (#13008)

Jonathan Chen8c9b9152c820
diff --git a/datafusion/functions/src/regex/regexpmatch.rs b/datafusion/functions/src/regex/regexpmatch.rs
index 443e505332..4a86adbe68 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 ca70c83e58..1915623012 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])