You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/03/29 03:07:00 UTC
[jira] [Resolved] (SPARK-34814) LikeSimplification should handle
NULL
[ https://issues.apache.org/jira/browse/SPARK-34814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-34814.
----------------------------------
Fix Version/s: 3.1.2
3.2.0
Resolution: Fixed
Issue resolved by pull request 31976
[https://github.com/apache/spark/pull/31976]
> LikeSimplification should handle NULL
> -------------------------------------
>
> Key: SPARK-34814
> URL: https://issues.apache.org/jira/browse/SPARK-34814
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Yuming Wang
> Assignee: angerszhu
> Priority: Major
> Fix For: 3.2.0, 3.1.2
>
>
> It will throw NPE if add this test to {{RegexpExpressionsSuite}}:
> {code:scala}
> import org.apache.spark.sql.catalyst.optimizer.ConstantFolding
> import org.apache.spark.sql.internal.SQLConf
> withSQLConf(SQLConf.OPTIMIZER_EXCLUDED_RULES.key ->
> ConstantFolding.getClass.getName.stripSuffix("$")) {
> checkEvaluation(Literal.create("foo", StringType)
> .likeAll("%foo%", Literal.create(null, StringType)), null)
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org