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

Jakub Dubovsky commented on SPARK-18880:
----------------------------------------

This together with SPARK-2620 makes live hard when one want to use spark in a 
notebook environment.

> Cannot use imported class as parameter of case class in spark-shell
> -------------------------------------------------------------------
>
>                 Key: SPARK-18880
>                 URL: https://issues.apache.org/jira/browse/SPARK-18880
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Shell
>    Affects Versions: 2.0.0, 2.0.1, 2.0.2
>         Environment: Download spark-2.0.2-bin-hadoop2.6.tgz
> Unpack and run (all defaults):
> ./bin/spark-shell --jars path/to/jar
>            Reporter: Jakub Dubovsky
>              Labels: case-class
>
> spark 2.0.* shell
> {code}
> scala> import com.baz.MyClass
> import com.baz.MyClass
> scala> case class A(m: MyClass)
> <console>:11: error: not found: type MyClass
>        case class A(p: KVPair)
>                        ^
> {code}
> scala 2.11.6 repl
> {code}
> scala> import com.baz.MyClass
> import com.baz.MyClass
> scala> case class A(p: MyClass)
> defined class A
> {code}
> This might be related to SPARK-17103?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to