[
https://issues.apache.org/jira/browse/SPARK-18880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved SPARK-18880.
-------------------------------
Resolution: Duplicate
> 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: [email protected]
For additional commands, e-mail: [email protected]