Skip to content

Commit

Permalink
docs: remove regexp_replace example
Browse files Browse the repository at this point in the history
This is the same underlying issue as apache#670. The new datafusion UDF functions don't properly handle optional arguments.
  • Loading branch information
Michael-J-Ward committed May 10, 2024
1 parent c6bdc9f commit d0d3e36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/user-guide/common-operations/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@ DataFusion offers a range of helpful options.
f.left(col('"Name"'), literal(4)).alias("code")
)
This also includes the functions for regular expressions :func:`.regexp_replace` and :func:`.regexp_match`
This also includes the functions for regular expressions like :func:`.regexp_match`

.. ipython:: python
df.select(
f.regexp_match(col('"Name"'), literal("Char")).alias("dragons"),
f.regexp_replace(col('"Name"'), literal("saur"), literal("fleur")).alias("flowers")
)
Expand Down

0 comments on commit d0d3e36

Please sign in to comment.