The workaround is defining the imports and class together using ":paste".
On Tue, Nov 22, 2016 at 11:12 AM, Shixiong(Ryan) Zhu < shixi...@databricks.com> wrote: > This relates to a known issue: https://issues.apache. > org/jira/browse/SPARK-14146 and https://issues.scala-lang. > org/browse/SI-9799 > > On Tue, Nov 22, 2016 at 6:37 AM, dbolshak <bolshakov.de...@gmail.com> > wrote: > >> Hello, >> >> We have the same issue, >> >> We use latest release 2.0.2. >> >> Setup with 1.6.1 works fine. >> >> Could somebody provide a workaround how to fix that? >> >> Kind regards, >> Denis >> >> >> >> -- >> View this message in context: http://apache-spark-user-list. >> 1001560.n3.nabble.com/Pasting-into-spark-shell-doesn-t-work- >> for-Databricks-example-tp28113p28116.html >> Sent from the Apache Spark User List mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe e-mail: user-unsubscr...@spark.apache.org >> >> >