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:16:00 UTC
[jira] [Created] (SPARK-41780) `regexp_replace('', '[a\\\\d]{0, 2}', 'x')` causes an internal error
Remzi Yang created SPARK-41780:
----------------------------------
Summary: `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
```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.
```
--
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