Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Consider the following Spark REPL session:
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) ^
This happens, because of the way the Spark REPL imports previously defined symbols (values / types).
Attachments
Issue Links
- breaks
-
SPARK-2632 Importing a method of class in Spark REPL causes the REPL to pulls in unnecessary stuff.
- Resolved
- depends upon
-
SPARK-5150 Strange implicit resolution behavior in Spark REPL
- Resolved
- duplicates
-
SPARK-2620 case class cannot be used as key for reduce
- Resolved
- supercedes
-
SPARK-1199 Type mismatch in Spark shell when using case class defined in shell
- Resolved