[jira] [Commented] (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:comment-tabpanel=17091201#comment-17091201 ] Linpx commented on SPARK-31461: --- i did search,didn't found any > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (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:comment-tabpanel=17091200#comment-17091200 ] Hyukjin Kwon commented on SPARK-31461: -- Please search existing jiras first before filing it. > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org