So, I’ve seen threads similar to this, but this one I really do think is some kind of bug.
I have a dataset with rows/columns that, when printed via a logger given by
system.util.getLogger, returns something like:
[ [5L, 3.6], [0L, 0L] ]
Or something similar, this is just for illustrative purposes.
So when I try to do
system.dataset.toDataSet on this (with a header list provided, of course) it fails with
Unable to convert row x, column y to type class java.lang.Long
I can clearly tell it’s because the float/integers aren’t meshing properly.
However, no matter what I do, I cannot get the script to treat the integers in there as floats. Wrapping them in
float() doesn’t work, wrapping them in
java.lang.Float() doesn’t work, adding
0.0 doesn’t work, multiplying by
1.0 doesn’t work. Nothing.
The only option that has worked has been adding a small value to each number in order to force it to be a float, in my case
0.0001. This is, quite obviously, not ideal. And given how I cannot seem to get this to work normally, at all, no matter what I try, I feel like it has to be a bug.