[ 
https://issues.apache.org/jira/browse/SPARK-41780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17653952#comment-17653952
 ] 

BingKun Pan commented on SPARK-41780:
-------------------------------------

I will fix it.

> `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
>
> {code:scala}
> 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.
> {code}
>  



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

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

Reply via email to