This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 8c9b9152c8 Minor: Fixed regexpr_match docs (#13008)
8c9b9152c8 is described below
commit 8c9b9152c8201d8b75d8e0b9b85b85d3199c94d8
Author: Jonathan Chen <[email protected]>
AuthorDate: Fri Oct 18 16:41:04 2024 -0400
Minor: Fixed regexpr_match docs (#13008)
* regexp_match
* update generated docs
---------
Co-authored-by: Andrew Lamb <[email protected]>
---
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 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])
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]