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

Strange implicit resolution behavior in Spark REPL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • Spark Shell

    Description

      Consider the following Spark REPL session:

      scala> def showInt(implicit x: Int) = println(x)
      showInt: (implicit x: Int)Unit
      
      scala> object IntHolder { implicit val myInt = 5 }
      defined module IntHolder
      
      scala> import IntHolder.myInt
      import IntHolder.myInt
      
      scala> showInt
      5
      
      scala> class A; showInt
      <console>:11: error: could not find implicit value for parameter x: Int
              showInt
              ^
      

      This was most likely caused by the fix to SPARK-2632

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tobias.schlatter Tobias Schlatter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: