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/06/03 18:08:59 UTC
[jira] [Created] (SYSTEMML-750) PYDML requires newline at end of
script
Deron Eriksson created SYSTEMML-750:
---------------------------------------
Summary: PYDML requires 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)