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

Deron Eriksson updated SYSTEMML-642:
------------------------------------
    Description: 
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, 
would make it easier for the user.


  was:
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.



> 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, would make it easier for the user.



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

Reply via email to