[jira] [Assigned] (SPARK-21261) SparkSQL regexpExpressions example
[ https://issues.apache.org/jira/browse/SPARK-21261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Owen reassigned SPARK-21261: - Assignee: Sean Owen > SparkSQL regexpExpressions example > --- > > Key: SPARK-21261 > URL: https://issues.apache.org/jira/browse/SPARK-21261 > Project: Spark > Issue Type: Documentation > Components: Examples >Affects Versions: 2.1.1 >Reporter: zhangxin >Assignee: Sean Owen >Priority: Major > Fix For: 2.4.0 > > > The follow execute result. > scala> spark.sql(""" select regexp_replace('100-200', '(\d+)', 'num') > """).show > +--+ > |regexp_replace(100-200, (d+), num)| > +--+ > | 100-200| > +--+ > scala> spark.sql(""" select regexp_replace('100-200', '(\\d+)', 'num') > """).show > +---+ > |regexp_replace(100-200, (\d+), num)| > +---+ > |num-num| > +---+ > Add Comment -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Assigned] (SPARK-21261) SparkSQL regexpExpressions example
[ https://issues.apache.org/jira/browse/SPARK-21261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-21261: Assignee: Apache Spark > SparkSQL regexpExpressions example > --- > > Key: SPARK-21261 > URL: https://issues.apache.org/jira/browse/SPARK-21261 > Project: Spark > Issue Type: Documentation > Components: Examples >Affects Versions: 2.1.1 >Reporter: zhangxin >Assignee: Apache Spark > > The follow execute result. > scala> spark.sql(""" select regexp_replace('100-200', '(\d+)', 'num') > """).show > +--+ > |regexp_replace(100-200, (d+), num)| > +--+ > | 100-200| > +--+ > scala> spark.sql(""" select regexp_replace('100-200', '(\\d+)', 'num') > """).show > +---+ > |regexp_replace(100-200, (\d+), num)| > +---+ > |num-num| > +---+ > Add Comment -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Assigned] (SPARK-21261) SparkSQL regexpExpressions example
[ https://issues.apache.org/jira/browse/SPARK-21261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-21261: Assignee: (was: Apache Spark) > SparkSQL regexpExpressions example > --- > > Key: SPARK-21261 > URL: https://issues.apache.org/jira/browse/SPARK-21261 > Project: Spark > Issue Type: Documentation > Components: Examples >Affects Versions: 2.1.1 >Reporter: zhangxin > > The follow execute result. > scala> spark.sql(""" select regexp_replace('100-200', '(\d+)', 'num') > """).show > +--+ > |regexp_replace(100-200, (d+), num)| > +--+ > | 100-200| > +--+ > scala> spark.sql(""" select regexp_replace('100-200', '(\\d+)', 'num') > """).show > +---+ > |regexp_replace(100-200, (\d+), num)| > +---+ > |num-num| > +---+ > Add Comment -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org