choeoe opened a new issue, #556:
URL: https://github.com/apache/hugegraph-doc/issues/556

   ### Problem Type (问题类型)
   
   lack info (文档描述缺失)
   
   ### Your Question (问题描述)
   
   ## Problem Type
   
   `lack info` in `apache/hugegraph-doc`. If submitted through the public 
fallback
   form in `apache/hugegraph`, select `configs (documentation related)`.
   
   ## Your Question
   
   ### Environment
   
   - Server Version: Apache HugeGraph 1.7.0
   - Gremlin Version: 3.5.1
   - Backend: memory
   - Data Size: 2 vertices and 1 edge
   
   ### Missing documentation information
   
   The documentation defines numeric property types and supported `has`
   predicates but does not state how Gremlin-Groovy numeric literal classes are
   compared with a stored `DOUBLE` property. An unsuffixed decimal literal is 
not
   necessarily a Java `Double`, so this affects query results.
   
   ### Reproduction case
   
   ```groovy
   schema.propertyKey('weight').asDouble().ifNotExist().create()
   schema.vertexLabel('DocVertex').useCustomizeStringId().ifNotExist().create()
   
schema.edgeLabel('DocEdge').sourceLabel('DocVertex').targetLabel('DocVertex').properties('weight').ifNotExist().create()
   g.addV('DocVertex').property(T.id, 'a').iterate()
   g.addV('DocVertex').property(T.id, 'b').iterate()
   g.V('a').addE('DocEdge').to(__.V('b')).property('weight', 1.0d).iterate()
   g.E().has('weight', P.within(1.0)).has('weight', P.lt(1.5)).count()
   ```
   
   ### Expected result
   
   Please document whether numeric predicates use value-based numeric coercion 
or
   require compatible runtime numeric classes, including any required literal
   suffixes.
   
   ### Actual result
   
   The traversal returns `0` even though the edge stores the `DOUBLE` value 
`1.0`,
   which is numerically within `1.0` and less than `1.5`.
   
   ### Reference document URL
   
   https://hugegraph.apache.org/docs/language/hugegraph-gremlin/
   
   https://hugegraph.apache.org/docs/clients/restful-api/propertykey/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to