You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jun Fang (JIRA)" <ji...@apache.org> on 2015/05/05 11:37:59 UTC

[jira] [Created] (SPARK-7363) Automatically cast into StringType for StringRegexExpression

Jun Fang created SPARK-7363:
-------------------------------

             Summary: 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org