You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/01/27 11:08:39 UTC

[jira] [Resolved] (SPARK-5149) Type mismatch when defining classes in Spark REPL

     [ https://issues.apache.org/jira/browse/SPARK-5149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-5149.
------------------------------
    Resolution: Duplicate

No doubt a slightly different manifestation but yes the same cause and therefore same fix, if it's even possible, would address both.

> Type mismatch when defining classes in Spark REPL
> -------------------------------------------------
>
>                 Key: SPARK-5149
>                 URL: https://issues.apache.org/jira/browse/SPARK-5149
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Shell
>            Reporter: Tobias Schlatter
>            Assignee: Tobias Schlatter
>            Priority: Critical
>
> Consider the following Spark REPL session:
> {code}
> scala> class A; def foo(x: A) = x
> defined class A
> foo: (x: A)A
> scala> foo(new A)
> <console>:14: error: type mismatch;
>  found   : A
>  required: A
>               foo(new A)
>                   ^
> {code}
> This happens, because of the way the Spark REPL imports previously defined symbols (values / types).



--
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