JanusGraph / janusgraph

JanusGraph: an open-source, distributed graph database
https://janusgraph.org
Other
5.21k stars 1.16k forks source link

Could not query double values after out() API #2752

Closed zhengyingying closed 2 years ago

zhengyingying commented 2 years ago

Please include configurations and logs if available.

For confirmed bugs, please report:

Stack Trace (if you have one)

java.util.concurrent.ExecutionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: java.lang.NumberFormatException
porunov commented 2 years ago

Could you please add reproduction steps including schema creation and data loading?

li-boxuan commented 2 years ago

Did you do this on gremlin console? It seems groovy interprets 3.49203472E8 as java.math.BigDecimal which is not a supported data type in JanusGraph. To be safe, always explicitly use 3.49203472E8d.

zhengyingying commented 2 years ago

@porunov We before met this problem, but not save data. I will provide the reproduction steps when we met this problem again. @li-boxuan Yes, I did this query on gremlin console. It is strange that when we executed g.V().has('vp2', 3.49203472E8), no exception was throw. Maybe it is not safe using 3.49203472E8.