incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

[Bug] Throw java.lang.NumberFormatException

Open llooFlashooll opened this issue 2 years ago • 5 comments

Bug Type (问题类型)

other exception / error (其他异常报错)

Before submit

  • [X] 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • HugeGraph Version: 0.12.0
  • Storage Backend: inmemory
  • Mixed Index Backend: none
  • Link to discussed bug: none
  • Operating system: macOS 13.2.1
  • API/Driver: Java

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

I first randomly create a graph. Then when I run the following query: g.V().has('vp0', not(not(gte('iUn2s').or(gte('730618742'))))).out().path() is thrown without further message to identify the root cause. I think this query is syntactically correct, but I keep triggering this kind of problem. And also the 730618742 number here should not have any overflow.

  • Expected behavior: No exception should be expected to throw. Or futher messages or prompts should be thrown.

  • Actual behavior: A java.lang.NumberFormatException is thrown. And I'm not really sure whether this problem should happen so I report this.

HugeGraph exception :
java.lang.NumberFormatException: Error encountered evaluating script: g.V().has('vp0', not(not(gte('iUn2s').or(gte('730618742'))))).out().path()

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

I don't provide the graph schema and data information because I think the bug here is a general problem. But if you need this kind of information, I'll further provide them. Thanks a lot!

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

No response

llooFlashooll avatar Mar 10 '23 06:03 llooFlashooll

now hg does not support gte('iUn2s'), only gte(number) is allowed

javeme avatar Mar 10 '23 12:03 javeme

OK, received with thanks!

llooFlashooll avatar Mar 10 '23 12:03 llooFlashooll

Do you think hugegraph will support this in the future? Since other GDBs support this kind of input.

llooFlashooll avatar Mar 10 '23 13:03 llooFlashooll

depend on the frequency of user requests, you can new a future issue now.

javeme avatar Mar 10 '23 13:03 javeme

OK, thanks a lot!

llooFlashooll avatar Mar 10 '23 13:03 llooFlashooll