Skip to content

Commit

Permalink
Optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
beliefer committed Feb 12, 2020
1 parent e50f010 commit 517251a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sql/core/src/main/scala/org/apache/spark/sql/functions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2375,6 +2375,8 @@ object functions {
/**
* Extract a specific group matched by a Java regex, from the specified string column.
* If the regex did not match, or the specified group did not match, an empty string is returned.
* if the specified group index exceeds the group count of regex, an IllegalArgumentException
* will be throwing.
*
* @group string_funcs
* @since 1.5.0
Expand All @@ -2385,8 +2387,9 @@ object functions {

/**
* Extract all specific groups matched by a Java regex, from the specified string column.
* If the regex did not match, return an empty array. if the specified group index exceeds the
* group count of regex, an IllegalArgumentException will be throwing.
* If the regex did not match, or the specified group did not match, return an empty array.
* if the specified group index exceeds the group count of regex, an IllegalArgumentException
* will be throwing.
*
* @group string_funcs
* @since 3.0.0
Expand Down

0 comments on commit 517251a

Please sign in to comment.