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/10/12 10:31:24 UTC
[I] [Bug] ORDER BY on a Boolean-or-null grouping key throws ClassCastException [hugegraph]
choeoe opened a new issue, #3319:
URL: https://github.com/apache/hugegraph/issues/3319
### Bug Type (问题类型)
rest-api (结果不合预期)
### 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
- Docker Image: `hugegraph/hugegraph:latest` as tested on 2026-09-27
- Backend: default Docker standalone backend
- Interface: Cypher REST endpoint
### Expected & Actual behavior (期望与实际表现)
```cypher
CREATE (:L5 {b0: false, id: 0}),
(:L4 {b0: true, id: 1}),
(:L4 {id: 2});
MATCH (n)
OPTIONAL MATCH (n)-[r0:T1]->(n1 {s1: 'v4_4'})
WITH n.b0 AS g, count(n1.id) AS c
RETURN g, c ORDER BY g DESC;
```
Expected: three rows for `null`, `true` and `false`, each with count `0`,
ordered according to Cypher's descending null/Boolean ordering.
Actual: execution fails and leaks a Java implementation exception:
```text
class java.lang.String cannot be cast to class java.lang.Boolean
```
### Vertex/Edge example (问题点 / 边数据举例)
```javascript
Three vertices are sufficient; one has `b0=false`, one has `b0=true`, and one
omits `b0`. No `T1` edge is required.
```
### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
```javascript
- Vertex labels: `L4`, `L5`
- Properties: `b0` Boolean and nullable/missing; `id` integer
- Edge label referenced by the optional pattern: `T1`
- No secondary index is required.
```
--
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] ORDER BY on a Boolean-or-null grouping key throws ClassCastException [hugegraph]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #3319:
URL: https://github.com/apache/hugegraph/issues/3319#issuecomment-6232661523
Try the latest docker image / code please, 1.8.0 is coming
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] [Bug] ORDER BY on a Boolean-or-null grouping key throws ClassCastException [hugegraph]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin closed issue #3319: [Bug] ORDER BY on a Boolean-or-null grouping key throws ClassCastException
URL: https://github.com/apache/hugegraph/issues/3319
--
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