You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found an issue with the EMBEDDEDLIST type. I am trying to store location point data in a List of doubles and can see that they are being rounded. I first noticed this issue whilst using the Java API but am able to reproduce in the studio browse tab where you can run the following three commands:
CREATE CLASS Test
CREATE PROPERTY Test.lngLatAlt EMBEDDEDLIST
INSERT INTO class:Test CONTENT {"lngLatAlt":[-1.0622668999780415,53.18759235410253,123.52103761862963]}
Notice in the result it has rounded the decimals in position 1 and 2 to 6 decimal places.
{
"result": [
{
"@type": "d",
"@Rid": "#56:0",
"@Version": 1,
"@Class": "Test",
"lngLatAlt": [
-1.0622668999780415,
53.18759,
123.521034
]
}
],
"notification": "Query executed in 0.011 sec. Returned 1 record(s)"
}
I am running version orientdb-community-2.0.8 downloaded from the homepage.
The text was updated successfully, but these errors were encountered:
reproduced on 2.1-rc5, and this happens even if the property is defined as EMBDEDDLIST DECIMAL.
notice also that first item in the list is rounded of to "...416" in my case.
I have found an issue with the EMBEDDEDLIST type. I am trying to store location point data in a List of doubles and can see that they are being rounded. I first noticed this issue whilst using the Java API but am able to reproduce in the studio browse tab where you can run the following three commands:
CREATE CLASS Test
CREATE PROPERTY Test.lngLatAlt EMBEDDEDLIST
INSERT INTO class:Test CONTENT {"lngLatAlt":[-1.0622668999780415,53.18759235410253,123.52103761862963]}
Notice in the result it has rounded the decimals in position 1 and 2 to 6 decimal places.
{
"result": [
{
"@type": "d",
"@Rid": "#56:0",
"@Version": 1,
"@Class": "Test",
"lngLatAlt": [
-1.0622668999780415,
53.18759,
123.521034
]
}
],
"notification": "Query executed in 0.011 sec. Returned 1 record(s)"
}
I am running version orientdb-community-2.0.8 downloaded from the homepage.
The text was updated successfully, but these errors were encountered: