Cannot set value if type of column is double
- Dominant language
- Java
- Stars
- 6.6k
- Forks
- 1.6k
- Avg merge
- 9h 38m
- Merged PRs (30d)
- 75
Description
**Prerequisite**
Scripting plugin should be installed
**Repro steps**
Create a clean workspace
Create a node
Create a data column, named **scaled**, with the type **Double**.
Set the the value of **scaled** to 0.0, using the Edit window.
Using the Console (scripting), execute the following command:
`iter(g.nodes).next().scaled = iter(g.nodes).next().scaled`
This should set the first (in your case only) node's **scaled** column to its own value.
However you will receive the error message below:
> Traceback (most recent call last):
> File "", line 1, in
> IllegalArgumentException: java.lang.IllegalArgumentException: The object class does not match with the column type (java.lang.Double)
Try this command:
`type(iter(g.nodes).next().scaled)`
Result will be:
>
In my opinion, this means, that the column **scaled** , type of _java.lang.Double_, will be converted to the python type _float_, but this conversion is irreversible.
I found no way to assign any value to a data column having the type of **Double**.
Contributor guide
Assessment
This issue has not been assessed yet.