You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2023/01/09 08:39:00 UTC

[jira] [Resolved] (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 ]

Max Gekk resolved SPARK-41780.
------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

Issue resolved by pull request 39383
[https://github.com/apache/spark/pull/39383]

> `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
>            Assignee: BingKun Pan
>            Priority: Major
>             Fix For: 3.4.0
>
>         Attachments: image-2023-01-04-14-12-26-126.png
>
>
> {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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org