From d0d3e36ba9c4ac1dfa940c7acd9747af87401b6b Mon Sep 17 00:00:00 2001 From: Michael-J-Ward Date: Fri, 10 May 2024 16:03:56 -0500 Subject: [PATCH] docs: remove regexp_replace example This is the same underlying issue as #670. The new datafusion UDF functions don't properly handle optional arguments. --- docs/source/user-guide/common-operations/functions.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/source/user-guide/common-operations/functions.rst b/docs/source/user-guide/common-operations/functions.rst index 7e5c592d8..50b493098 100644 --- a/docs/source/user-guide/common-operations/functions.rst +++ b/docs/source/user-guide/common-operations/functions.rst @@ -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") )