Roman Kashkarov created ZEPPELIN-2803:
-----------------------------------------
Summary: Defining a Scala method with no arguments in Zeppelin
also runs it
Key: ZEPPELIN-2803
URL: https://issues.apache.org/jira/browse/ZEPPELIN-2803
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.7.2
Reporter: Roman Kashkarov
Priority: Minor
Defining a Scala method with no arguments in Zeppelin also runs it.
Code that I am using to replicate the issue:
{code:java}
def f(): Unit = println("Running")
{code}
Expected behaviour:
When I run this in Zeppelin 0.6.2, I get the following output:
{code:java}
f: ()Unit
{code}
Actual behaviour:
{code:java}
f: ()Unit
Running
{code}
When I test this in Spark shell, I get expected behaviour.
Reason why this is a problem: There are situations where I want to define a
method with no parameters but I do not want to run it upon definition because
it may take a long time to execute. Instead, I would rather define it and then
actually run it only when I need it.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)