[
https://issues.apache.org/jira/browse/SPARK-7363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jun Fang resolved SPARK-7363.
-----------------------------
Resolution: Duplicate
duplicated with SPARK-7266
> Automatically cast into StringType for StringRegexExpression
> ------------------------------------------------------------
>
> Key: SPARK-7363
> URL: https://issues.apache.org/jira/browse/SPARK-7363
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.3.1
> Reporter: Jun Fang
>
> Spark-SQL can not cast DataType into StringType in StringRegexExpression
> automatically, so if we run a SQL like: "select A from B where id regexp
> '^12345$'" in which column id is a BIGINT type, we got a error like: "
> java.lang.ClassCastException: java.lang.Long cannot be cast to
> java.lang.String". We should make StringRegexExpression inherit
> ExpectsInputTypes and specified input type with StringType here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]