You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/05 17:45:00 UTC
[jira] [Commented] (TOREE-466) Function taking a function as
parameter, Kernel Crashes
[ https://issues.apache.org/jira/browse/TOREE-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16386417#comment-16386417 ]
ASF GitHub Bot commented on TOREE-466:
--------------------------------------
GitHub user lresende opened a pull request:
https://github.com/apache/incubator-toree/pull/153
[TOREE-466] Properly recognize higher order functions
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lresende/incubator-toree higher-order-function
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-toree/pull/153.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #153
----
commit b8872a4cb29de61f145255d8c0f4e44f485b57f6
Author: Luciano Resende <lr...@...>
Date: 2018-03-05T17:42:23Z
[TOREE-466] Properly recognize higher order functions
----
> Function taking a function as parameter, Kernel Crashes
> -------------------------------------------------------
>
> Key: TOREE-466
> URL: https://issues.apache.org/jira/browse/TOREE-466
> Project: TOREE
> Issue Type: Bug
> Affects Versions: 0.2.0
> Environment: jre-8u162, scala-2.12.4, spark-2.2.1-bin-hadoop2.7, 0.2.0-incubating-rc3 in a Ubuntu 17.10 based Docker Container
> Reporter: Hans
> Assignee: Luciano Resende
> Priority: Major
>
> Dear Toree Developers
> The following simple code (in a Jupyter notebook cell) crashes the kernel:
>
>
> {code:java}
> def f(x: Int, l: (Int) => Int): Int = { l(x) }
> f(2, x => x*x)
> {code}
>
> This works in the Scala REPL.
> With best wishes & thanks for your great efforts on Toree
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)