Jakub Dubovsky created SPARK-18880:
--------------------------------------

             Summary: 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.2, 2.0.1, 2.0.0
         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


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]

Reply via email to