apache / apache/hugegraph

[Bug] Throw java.lang.NumberFormatException without outside()

Open
#2,168 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
3.2k
Forks
636
Avg merge
3d 11h
Merged PRs (30d)
14

Description

### Bug Type (问题类型)

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

### 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 (环境信息)

- 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('vl0', 'vp1',outside(false,false)).has('vp1')` 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.

- 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. Should not `outside()` support identical arguments here? I think other GDBs support this kind of syntax.
```
HugeGraph exception :
java.lang.NumberFormatException: Error encountered evaluating script: g.V().has('vl0', 'vp1',outside(false,false)).has('vp1')
```

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

_No response_

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

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.