Re: [Spark SQL]: sql.DataFrame.replace to accept regexp

2019-03-01 Thread Gourav Sengupta
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 wrote: > You can file a feature request at > > https://issues.apache.org/jira/projects/SPARK/

Re: [Spark SQL]: sql.DataFrame.replace to accept regexp

2019-03-01 Thread Richard Garris
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/late

[Spark SQL]: sql.DataFrame.replace to accept regexp

2019-03-01 Thread Nuno Silva
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 ? Thank you, Nuno