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/04/21 22:43:13 UTC
[jira] [Created] (SYSTEMML-642) Wrong-case boolean input parameter
gives somewhat cryptic message
Deron Eriksson created SYSTEMML-642:
---------------------------------------
Summary: Wrong-case boolean input parameter gives somewhat cryptic message
Key: SYSTEMML-642
URL: https://issues.apache.org/jira/browse/SYSTEMML-642
Project: SystemML
Issue Type: Improvement
Components: APIs
Reporter: Deron Eriksson
Priority: Minor
If input parameter $X is "true" rather than "TRUE" and DML script is the following:
{code}
print("test:" + ($X == TRUE));
{code}
The resulting error is:
{code}
...
org.apache.sysml.lops.LopsException: ERROR: line 1, column 16 -- Problem generating simple inst - CP°==°true·SCALAR·STRING·true°true·SCALAR·BOOLEAN·true°_Var2·SCALAR·BOOLEAN
...
Caused by: org.apache.sysml.runtime.DMLRuntimeException: unexpected value-type in Relational Binary Instruction involving scalar operands.
{code}
I have generated this error a few times, since I have not initially realized that my boolean input parameter coming from outside of a DML script needs to be the correct case for DML. The error is correct, but perhaps something like "Input parameter $X (value='true') is not valid in Relational Binary Instruction (boolean value can only be TRUE or FALSE)", or something like that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)