LinBob created SPARK-31461:
------------------------------
Summary: 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: LinBob
org.apache.spark.sql.catalyst.expressions
regexpExpressions.scala
line: 41
// try cache the pattern for Literal
private lazy val cache: Pattern = right match {
case x @ Literal(value: String, StringType) => compile(value)
case _ => null
}
StringType Literal value is UTF8String
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]