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

Deron Eriksson commented on SYSTEMML-750:
-----------------------------------------

[~niketanpansare] Do you happen to know if there is an quick fix for this? I 
came up with a fix for "print('hello')" but the fix did not work for "if 
(1==1):\n   print('hello')".

> PYDML should not require newline at end of script
> -------------------------------------------------
>
>                 Key: SYSTEMML-750
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-750
>             Project: SystemML
>          Issue Type: Bug
>          Components: APIs
>            Reporter: Deron Eriksson
>             Fix For: SystemML 0.11
>
>
> PYDML currently requires a linefeed at the end of the script. No linefeed 
> should be required on the last line. This should be fixed in Pydml.g4.
> For example, the following code:
> {code}
> SparkConf conf = new 
> SparkConf().setAppName("MLContextExample").setMaster("local");
> JavaSparkContext sc = new JavaSparkContext(conf);
> MLContext ml = new MLContext(sc);
> String scriptString = "print('hello world')";
> ml.executeScript(scriptString, true);
> {code}
> generates the following error:
> {code}
> [line 1:20] [Syntax error] -> print('hello world')
>    missing NEWLINE at '<EOF>'
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to