Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2453

Compound lines in spark-shell cause compilation errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Component/s: Spark Core
    • Labels:
      None

      Description

      repro:

      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;
      

      Everything's cool if the def is put on its own line.

      This was caused by https://github.com/apache/spark/commit/d43415075b3468fe8aa56de5d2907d409bb96347 ([~prashant_]).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ilikerps Aaron Davidson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: