[
https://issues.apache.org/jira/browse/TOREE-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15139448#comment-15139448
]
Gino Bustelo commented on TOREE-257:
------------------------------------
> It prevents me from concatenating more filter/map/... statements which is
> what 90% of experimental spark code written in jupyter looks like.
Place the `.` at the end of the line rather than at the beginning of the line.
There is a bug here, but this is a work around for now so you can actually
chain together multiple collection operations.
<cell>
val bbb = aaa.filter( ! _._4.isEmpty).
map(row => ((row._2, row._4), row))
</cell>
> Code submit does not support paste mode
> ---------------------------------------
>
> Key: TOREE-257
> URL: https://issues.apache.org/jira/browse/TOREE-257
> Project: TOREE
> Issue Type: Bug
> Reporter: Jakub Dubovsky
> Priority: Minor
>
> <cell>
> val bbb = aaa.filter( ! _._4.isEmpty)
> .map(row => ((row._2, row._4), row))
> </cell>
> Submit of this cell results in error:
> Name: Compile Error
> Message: <console>:1: error: illegal start of definition
> .map(row => ((row._2, row._4), row))
> ^
> This is probably because the content of cell is "retyped" into scala/spark
> shell line by line. First line is recognized and compiled as statement whose
> continuation on second line is ignored.
> In scala repl this is solved by using :paste mode which does not work here.
> This looks like minor bug but is very annoying actually. It prevents me from
> concatenating more filter/map/... statements which is what 90% of
> experimental spark code written in jupyter looks like.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)