[ 
https://issues.apache.org/jira/browse/TOREE-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15139056#comment-15139056
 ] 

Chip Senkbeil commented on TOREE-257:
-------------------------------------

Hm, I wonder what the better option would be. Filter code input or create a 
magic. This is also Scala-specific; so, we'd need to make it generic enough to 
handle other languages (Python/R) that might have similar mechanics. Guess we 
need a generic preprocessor for code input. [~lbustelo], what do you think?

> 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
>
> <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)

Reply via email to