spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Rosellini <l...@stratio.com>
Subject defining classes in Spark REPL
Date Wed, 29 Jan 2014 14:04:05 GMT
Hello everybody,
I'm seeing a slightly different behaviour between Spark REPL (0.9) and Scala
REPL (2.10.3).
When defining the following new class in the REPL:
class TempOutputEntity

and issuing a classOf[TempOutputEntity] in the Scala REPL I get:
Class[TempOutputEntity] = class TempOutputEntity

while issuing the same command in Spark REPL I get:
Class[TempOutputEntity] = class
$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$TempOutputEntity

This prevents the instantiation of new instances using reflection.
Could anyone explain if this is a bug or the expected behaviour?

Thanks,
Luca



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/defining-classes-in-Spark-REPL-tp1017.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
Mime
View raw message