You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2016/09/23 20:34:20 UTC

[jira] [Resolved] (SYSTEMML-750) PYDML should not require newline at end of script

     [ https://issues.apache.org/jira/browse/SYSTEMML-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deron Eriksson resolved SYSTEMML-750.
-------------------------------------
    Resolution: Won't Fix

Although a fix of the grammar might be a proper fix, enough checks are in place in other places in SystemML so that this is not really much of an issue anymore.

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