[
https://issues.apache.org/jira/browse/SYSTEMML-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15848905#comment-15848905
]
Mike Dusenberry commented on SYSTEMML-1222:
-------------------------------------------
cc [~deron]
> MLContext `read` Statement Value Input Error For `cols_in_block` Argument
> -------------------------------------------------------------------------
>
> Key: SYSTEMML-1222
> URL: https://issues.apache.org/jira/browse/SYSTEMML-1222
> Project: SystemML
> Issue Type: Bug
> Reporter: Mike Dusenberry
> Priority: Minor
>
> The {{read}} statement has optional numeric parameters, such as
> {{cols_in_block}} that expect integers. If a Scala {{Long}} is supplied as
> an input variable for one of those parameters via MLContext, and type error
> will occur in which an {{Int}} was expected, but a {{Long}} was received. A
> quick fix is to convert to an integer with {{Long.toInt}} before passing the
> value into the script via MLContext.
> We should automatically cast {{Long}} to {{Int}} internally.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)