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 2020/04/24 05:01:00 UTC
[jira] [Resolved] (SPARK-31461) RLIKE and LIKE expression compiles
every time when it used
[ https://issues.apache.org/jira/browse/SPARK-31461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-31461.
----------------------------------
Resolution: Duplicate
> RLIKE and LIKE expression compiles every time when it used
> ----------------------------------------------------------
>
> Key: SPARK-31461
> URL: https://issues.apache.org/jira/browse/SPARK-31461
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.3.0
> Reporter: Linpx
> Priority: Minor
>
> org.apache.spark.sql.catalyst.expressions
> regexpExpressions.scala
> line: 41
> {code:scala}
> // try cache the pattern for Literal
> private lazy val cache: Pattern = right match {
> case x @ Literal(value: String, StringType) => compile(value)
> case _ => null
> }
> {code}
> StringType Literal value is UTF8String by default
--
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