You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 05:37:35 UTC
[jira] [Resolved] (SPARK-5150) Strange implicit resolution behavior
in Spark REPL
[ https://issues.apache.org/jira/browse/SPARK-5150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-5150.
---------------------------------
Resolution: Incomplete
> Strange implicit resolution behavior in Spark REPL
> --------------------------------------------------
>
> Key: SPARK-5150
> URL: https://issues.apache.org/jira/browse/SPARK-5150
> Project: Spark
> Issue Type: Bug
> Components: Spark Shell
> Reporter: Tobias Schlatter
> Priority: Major
> Labels: bulk-closed
>
> Consider the following Spark REPL session:
> {code}
> 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
> ^
> {code}
> This was most likely caused by the fix to SPARK-2632
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org