[ https://issues.apache.org/jira/browse/SPARK-5149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14269571#comment-14269571 ]
Tobias Schlatter commented on SPARK-5149: ----------------------------------------- SPARK-1199 is a partial hack-fix for this and should be undone. However, undoing it breaks the fix to SPARK-2632 (another hack). Therefore, we depend on SPARK-5150 (which hopefully fixes SPARK-2632 properly) > 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org