spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron S. Hawley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-14146) Imported implicits can't be found in Spark REPL in some cases
Date Tue, 01 May 2018 22:38:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-14146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16460239#comment-16460239
] 

Aaron S. Hawley commented on SPARK-14146:
-----------------------------------------

Should be resolved in Scala after this was merged:

[https://github.com/scala/scala/pull/5084]

That fix was released in Scala 2.11.11

[https://github.com/scala/scala/releases/tag/v2.11.11]

 

> Imported implicits can't be found in Spark REPL in some cases
> -------------------------------------------------------------
>
>                 Key: SPARK-14146
>                 URL: https://issues.apache.org/jira/browse/SPARK-14146
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core, SQL
>    Affects Versions: 2.0.0
>            Reporter: Wenchen Fan
>            Priority: Major
>
> {code}
> class I(i: Int) {
>   def double: Int = i * 2
> }
> class Context {
>   implicit def toI(i: Int): I = new I(i)
> }
> val c = new Context
> import c._
> // OK
> 1.double
> // Fail
> class A; 1.double
> {code}
> The above code snippets can work in Scala REPL however.
> This will affect our Dataset functionality, for example:
> {code}
> class A; Seq(1 -> "a").toDS() // fail
> {code}
> or in paste mode:
> {code}
> :paste
> class A
> Seq(1 -> "a").toDS() // fail
> {code}



--
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


Mime
View raw message