[ 
https://issues.apache.org/jira/browse/TINKERPOP-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480014#comment-17480014
 ] 

Stephen Mallette commented on TINKERPOP-2694:
---------------------------------------------

I don't find a problem with TinkerGraph:

{code}
gremlin> g = TinkerGraph.open().traversal()
==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> g.addV("person").property("hair", Double.POSITIVE_INFINITY )
==>v[0]
gremlin> g.V().elementMap()
==>[id:0,label:person,hair:Infinity]
gremlin> g.V().has('hair',0.5d)
gremlin> g.V().has('hair',Double.POSITIVE_INFINITY)
==>v[0]
{code}

Given your error, I sense you are perhaps having a problem with TinkerGraph 
hosted in Gremlin Server since there is a "ResponseException". Could you please 
provide more information about your environment? Are you sending scripts to the 
server? If so, Is it configured to use the {{GremlinGroovyScriptEngine}} or 
{{GremlinLangScriptEngine}}? What serialization format are you using? I would 
expect a {{ResponseException}} for JanusGraph as well assuming the same 
environment - is it possible you were connected in embedded mode for JanusGraph 
when it worked (as I did above for TinkerGraph)?

> Bug of TinkerGraph gremlin api "has()"
> --------------------------------------
>
>                 Key: TINKERPOP-2694
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2694
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.10
>         Environment: Version: 3.4.10
> OS : CentOS8
> Storage Backend: in-memory
>            Reporter: Lei Tang
>            Priority: Major
>
> Error occurred when querying "has()" on properties if the data has INFINITY 
> field.
> h3. Current behavior
> java.util.concurrent.ExecutionException: 
> org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Character I 
> is neither a decimal digit number, decimal point, nor "e" notation 
> exponential mark.
> h3. Expected behavior
> It is expected to return certain vertices. Besides the bug didn't occur in 
> JanusGraph.
> h3. Reproduce
> Vertex alice = g.addV("person").property("hair", Double.POSITIVE_INFINITY 
> ).next();
> Vertex bob = g.addV("person").property("hair", 500 ).next();



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to