In the zeppelin 0.7.0 %spark context if i evaluate:

+---
def foo():Unit  = { print("bar")}
+---

response is:

+---
foo: ()Unit
bar
+---

Seems the "print" shouldn't be executed, indeed, if i evaluate:

+---
def foo(i:Int):Unit = {print ("bar")}
+---

response is:

+---
foo: (i: Int)Unit
+---

and the print statement is not evaluated. Am i missing something?




--
View this message in context: 
http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/spark-REPL-behavior-for-functions-definitions-w-empty-argument-list-in-0-7-0-tp5146.html
Sent from the Apache Zeppelin Users (incubating) mailing list mailing list 
archive at Nabble.com.

Reply via email to