You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "BingKun Pan (Jira)" <ji...@apache.org> on 2023/01/03 11:54:00 UTC
[jira] [Commented] (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: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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org