You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Glenn Weidner (JIRA)" <ji...@apache.org> on 2016/05/15 00:15:12 UTC

[jira] [Created] (SYSTEMML-696) Handle name conflict for overridden built-in and converted PyDML function

Glenn Weidner created SYSTEMML-696:
--------------------------------------

             Summary: Handle name conflict for overridden built-in and converted PyDML function
                 Key: SYSTEMML-696
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-696
             Project: SystemML
          Issue Type: Bug
          Components: Parser, PyDML
            Reporter: Glenn Weidner


An error occurs if a user function definition overrides a built-in function for converting different PyDML syntax.  For example:

X = random.normal(4, 3, 1)
print(sum(X))

def rand(x: int) -> (y: int):
    y = x*2


org.apache.sysml.parser.LanguageException: Unsupported Parameters : ERROR: line 2, column 6 -- Expecting matrix parameter for function SUM
	at org.apache.sysml.parser.Expression.raiseValidateError(Expression.java:554)
	at org.apache.sysml.parser.BuiltinFunctionExpression.checkMatrixParam(BuiltinFunctionExpression.java:1184)
	at org.apache.sysml.parser.BuiltinFunctionExpression.validateExpression(BuiltinFunctionExpression.java:273)
	at org.apache.sysml.parser.StatementBlock.validate(StatementBlock.java:766)
	at org.apache.sysml.parser.DMLTranslator.validateParseTree(DMLTranslator.java:133)
	at org.apache.sysml.api.DMLScript.execute(DMLScript.java:592)
	at org.apache.sysml.api.DMLScript.executeScript(DMLScript.java:337)
	at org.apache.sysml.api.DMLScript.main(DMLScript.java:192)




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