apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.63k stars 517 forks source link

[Bug] Inconsistent behavior when comparing property values with a string value #2164

Open zhengyingying opened 1 year ago

zhengyingying commented 1 year ago

Bug Type (问题类型)

gremlin (结果不合预期)

Before submit

Environment (环境信息)

Expected & Actual behavior (期望与实际表现)

I have noticed that HugeGraph does not support gte(STRING) from the previous issues. However, I can get the expected result when I remove HugeGraphStepStrategy.

Does HugeGraphStepStrategy add some restrictions? I think they should behave consistently.

gremlin> :> hugegraph.traversal().V().has('vp0', not(gte('10')))
Can't compare between 1(String) and 10(String)

gremlin> :> hugegraph.traversal().withoutStrategies(HugeGraphStepStrategy).V().has('vp0', not(gte('10')))
==>[id:700015037397336064,label:vl0,type:vertex,properties:[vp0:1]]

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

javeme commented 1 year ago

Yes you are right, now the HugeGraphStepStrategy just supports numbers comparison. please follow https://github.com/apache/incubator-hugegraph/issues/2159 in the future.

zhengyingying commented 1 year ago

Thank you for your reply. Looking forward to the new feature in the future.