Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanm-db committed Oct 22, 2024
1 parent 3513600 commit 6656eaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/pyspark/sql/functions/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13096,7 +13096,7 @@ def try_parse_url(
) -> Column:
"""
This is a special version of `parse_url` that performs the same operation, but returns a
NULL value instead of raising an error if the decoding cannot be performed.
NULL value instead of raising an error if the parsing cannot be performed.

.. versionadded:: 4.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,9 @@ object ParseUrl {
private val REGEXSUBFIX = "=([^&]*)"
}

/**
* Extracts a part from a URL
*/
// scalastyle:off line.size.limit
@ExpressionDescription(
usage = "_FUNC_(url, partToExtract[, key]) - Extracts a part from a URL.",
usage = "_FUNC_(url, partToExtract[, key]) - This is a special version of `parse_url` that performs the same operation, but returns a NULL value instead of raising an error if the parsing cannot be performed.",
examples = """
Examples:
> SELECT _FUNC_('http://spark.apache.org/path?query=1', 'HOST');
Expand Down

0 comments on commit 6656eaa

Please sign in to comment.