You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/07/13 07:42:00 UTC

[jira] [Commented] (SPARK-39758) NPE on invalid patterns from the regexp functions

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

Apache Spark commented on SPARK-39758:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/37171

> NPE on invalid patterns from the regexp functions
> -------------------------------------------------
>
>                 Key: SPARK-39758
>                 URL: https://issues.apache.org/jira/browse/SPARK-39758
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Max Gekk
>            Assignee: Max Gekk
>            Priority: Major
>
> The example below reproduces the issue:
> {code:sql}
> spark-sql> SELECT regexp_extract('1a 2b 14m', '(?l)');
> 22/07/12 19:07:21 ERROR SparkSQLDriver: Failed in [SELECT regexp_extract('1a 2b 14m', '(?l)')]
> java.lang.NullPointerException: null
> 	at org.apache.spark.sql.catalyst.expressions.RegExpExtractBase.getLastMatcher(regexpExpressions.scala:768) ~[spark-catalyst_2.12-3.3.0.jar:3.3.0]
> {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