You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Remzi Yang (Jira)" <ji...@apache.org> on 2022/12/30 03:17:00 UTC

[jira] [Updated] (SPARK-41780) `regexp_replace('', '[a\\\\d]{0, 2}', 'x')` causes an internal error

     [ https://issues.apache.org/jira/browse/SPARK-41780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remzi Yang updated SPARK-41780:
-------------------------------
    Description: 
scala> spark.sql("select regexp_replace('', '[a\\\\d]\{0,2}', 'x')").show
+----------------------------------+
|regexp_replace(, [a\d]\{0,2}, x, 1)|
+----------------------------------+
|                                 x|
+----------------------------------+
 
 
scala> spark.sql("select regexp_replace('', '[a\\\\d]\{0, 2}', 'x')").show
org.apache.spark.SparkException: The Spark SQL phase optimization failed with an internal error. Please, fill a bug report in, and provide the full stack trace.
 

  was:
```sql
scala> spark.sql("select regexp_replace('', '[a\\\\d]{0,2}', 'x')").show
+----------------------------------+
|regexp_replace(, [a\d]{0,2}, x, 1)|
+----------------------------------+
|                                 x|
+----------------------------------+


scala> spark.sql("select regexp_replace('', '[a\\\\d]{0, 2}', 'x')").show
org.apache.spark.SparkException: The Spark SQL phase optimization failed with an internal error. Please, fill a bug report in, and provide the full stack trace.
```


> `regexp_replace('', '[a\\\\d]{0, 2}', 'x')` causes an internal error
> --------------------------------------------------------------------
>
>                 Key: SPARK-41780
>                 URL: https://issues.apache.org/jira/browse/SPARK-41780
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0
>         Environment: Spark3.3.0 local mode
>            Reporter: Remzi Yang
>            Priority: Major
>
> scala> spark.sql("select regexp_replace('', '[a\\\\d]\{0,2}', 'x')").show
> +----------------------------------+
> |regexp_replace(, [a\d]\{0,2}, x, 1)|
> +----------------------------------+
> |                                 x|
> +----------------------------------+
>  
>  
> scala> spark.sql("select regexp_replace('', '[a\\\\d]\{0, 2}', 'x')").show
> org.apache.spark.SparkException: The Spark SQL phase optimization failed with an internal error. Please, fill a bug report in, and provide the full stack trace.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org