You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "choeoe (via GitHub)" <gi...@apache.org> on 2026/07/08 07:31:59 UTC

[I] [Bug] Wrong result for repeated predicates [hugegraph]

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

   ### Bug Type (问题类型)
   
   gremlin (结果不合预期)
   
   ### Before submit
   
   - [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.7.0
   - gremlin: 3.5.1
   - Docker Image: `hugegraph/hugegraph:latest`
   - Backend: default Docker standalone backend
   - Data Size: 2 vertices, 1 edge
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   HugeGraph returns a wrong result when multiple `has()` predicates.
   
   The graph has one edge:
   (a:A)-[:E {x: -4}]->(b:A)
   
   Bug-triggering query:
   g.E().has('x', -4).has('x', lte(4)).count()
   
   Expected:
   [1]
   
   Actual:
   [0]
   
   The conjunction is satisfiable because the edge has x = -4, and -4 <= 4.
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   **Vertex/Edge example**
   
   
   
   curl -fsS --compressed -X DELETE \
     "http://127.0.0.1:8080/graphs/hugegraph/clear?confirm_message=I'm%20sure%20to%20delete%20all%20data"
   
   curl -fsS --compressed -H 'Content-Type: application/json' -X POST \
     -d '{"id":"a","label":"A","properties":{}}' \
     "http://127.0.0.1:8080/graphs/hugegraph/graph/vertices"
   
   curl -fsS --compressed -H 'Content-Type: application/json' -X POST \
     -d '{"id":"b","label":"A","properties":{}}' \
     "http://127.0.0.1:8080/graphs/hugegraph/graph/vertices"
   
   curl -fsS --compressed -H 'Content-Type: application/json' -X POST \
     -d '{"label":"E","outV":"a","outVLabel":"A","inV":"b","inVLabel":"A","properties":{"x":-4}}' \
     "http://127.0.0.1:8080/graphs/hugegraph/graph/edges"
   ```
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   **Schema**
   
   
   
   curl -fsS --compressed -H 'Content-Type: application/json' -X POST \
     -d '{"name":"x","data_type":"LONG","cardinality":"SINGLE"}' \
     "http://127.0.0.1:8080/graphs/hugegraph/schema/propertykeys"
   
   curl -fsS --compressed -H 'Content-Type: application/json' -X POST \
     -d '{"name":"A","id_strategy":"CUSTOMIZE_STRING","properties":[],"nullable_keys":[],"enable_label_index":true}' \
     "http://127.0.0.1:8080/graphs/hugegraph/schema/vertexlabels"
   
   curl -fsS --compressed -H 'Content-Type: application/json' -X POST \
     -d '{"name":"E","source_label":"A","target_label":"A","frequency":"SINGLE","properties":["x"],"nullable_keys":["x"],"enable_label_index":true}' \
     "http://127.0.0.1:8080/graphs/hugegraph/schema/edgelabels"
   
   curl -fsS --compressed -H 'Content-Type: application/json' -X POST \
     -d '{"name":"idx_e_x_range","base_type":"EDGE_LABEL","base_value":"E","index_type":"RANGE","fields":["x"]}' \
     "http://127.0.0.1:8080/graphs/hugegraph/schema/indexlabels"
   ```


-- 
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: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Wrong result for repeated predicates [hugegraph]

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin closed issue #3083: [Bug] Wrong result for repeated predicates
URL: https://github.com/apache/hugegraph/issues/3083


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org