Deron Eriksson created SYSTEMML-522:
---------------------------------------

             Summary: Add optional description parameter to read function
                 Key: SYSTEMML-522
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-522
             Project: SystemML
          Issue Type: Task
          Components: APIs, Parser
            Reporter: Deron Eriksson
            Priority: Minor


Metadata attributes can typically be passed as function parameters. For 
example, in the first call below, we see that the header and sep attributes are 
passed successfully as function parameters to the read() function.

{code}
# good
b = read("m.csv", header=FALSE, sep=",");
# bad
c = read("m.csv", header=FALSE, sep=",", description="desc");
{code}

However, if someone tries to pass in a description attribute as a function 
parameter (as in the second example above), it blows up with an unhelpful error 
message:

{code}
Caused by: org.apache.sysml.parser.ParseException: One or more errors found 
during parsing (could not construct AST for file: hello.dml). Cannot proceed 
ahead.
{code}

Even if the description attribute isn't being used for anything, given that it 
is a valid metadata attribute, it shouldn't blow up the script when passed as a 
function parameter.





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

Reply via email to