Aaron Davidson created SPARK-2453:
-------------------------------------
Summary: Compound lines in spark-shell cause compilation errors
Key: SPARK-2453
URL: https://issues.apache.org/jira/browse/SPARK-2453
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 1.0.1
Reporter: Aaron Davidson
Priority: Critical
repro:
{code}
scala> val x = 3; def z() = x + 4
x: Int = 3
z: ()Int
scala> z()
<console>:11: error: $VAL5 is already defined as value $VAL5
val $VAL5 = INSTANCE;
{code}
Everything's cool if the def is put on its own line.
This was caused by
https://github.com/apache/spark/commit/d43415075b3468fe8aa56de5d2907d409bb96347
([~prashant_]).
--
This message was sent by Atlassian JIRA
(v6.2#6252)