Hi,

why not just use regexp_replace() unless there is an attachment to the
function replace ofcourse, which is quite understandable :)


Regards,
Gourav



On Fri, Mar 1, 2019 at 2:39 PM Richard Garris <rlgar...@databricks.com>
wrote:

> You can file a feature request at
>
> https://issues.apache.org/jira/projects/SPARK/
>
> As a workaround you can create a user defined function like so:
>
>
> https://databricks-prod-cloudfront.cloud.databricks.com/public/4027ec902e239c93eaaa8714f173bcfc/1526931011080774/2518747644544276/6320440561800420/latest.html
>
>
> Richard L. Garris
>
> Director of Field Engineering
>
> Databricks, Inc.
>
> rich...@databricks.com
>
> Mobile: 650.200.0840
>
> databricks.com
> <http://databricks.com/>
>
>
>
>
> On Fri, Mar 1, 2019 at 2:21 AM Nuno Silva <nuno.mgomes.si...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Not sure if I'm delivering my request through the right channel: would it
>> be possible for sql.DataFrame.replace to accept regular expressions, like
>> in pandas.DataFrame.replace
>> <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.replace.html>
>> ?
>>
>> Thank you,
>> Nuno
>>
>

Reply via email to