Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.
cc deron