[Bug] Cypher endpoint rejects the standard date() function as unknown
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the Cypher REST endpoint’s function resolution path and trace where supported functions are registered or validated; the issue does not name source files or tests. Reproduce with the provided CREATE and MATCH queries, including the dead expression branch. Done means date() is recognized and the query returns 0 for the stated data.
由索引模型根据 Issue 内容生成。
描述
Bug Type (问题类型)
rest-api (结果不合预期)
Before submit
- 我已经确认现有的 Issues 与 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:latestas tested on 2026-09-27 - Backend: default Docker standalone backend
- Interface: Cypher REST endpoint
Expected & Actual behavior (期望与实际表现)
Given:
CREATE (:L0 {i0: 1, s0: 'a', d0: '2020-01-02'});
MATCH (n {d0: date('2024-02-05')}) RETURN count(*);
Expected: the query executes and returns 0, because the only stored value
does not equal the constructed date.
Actual: query compilation fails with:
Unknown function 'date'
The failure is data-independent and is raised even when date() appears only
in a dead expression branch.
Vertex/Edge example (问题点 / 边数据举例)
One vertex is sufficient:
(:L0 {i0: 1, s0: 'a', d0: '2020-01-02'})
No edges are required.
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
- Vertex label: `L0`
- Properties: `i0` integer, `s0` string, `d0` string/date-like value
- No secondary index is required for the function-resolution failure.
- 主要语言
- Java
- 星标
- 3.2k
- 派生
- 641
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 70
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/hugegraph 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
apache/hugegraph#3231 · 1 条评论 ·
维护者通常 1 天内回复
-
help wanted improvement rust
难度 5/5 一周以上 新手友好度 12/100
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 66/100
维护者通常 1 天内回复
-
[Bug] CI accepts obsolete PR targets after retargeting or force-push可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 25/100
维护者通常 1 天内回复
-
[Feature] Server image: map server.urls_to_pd and server.deploy_in_k8s from the environment, and stop editing conf files in place可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
相似的 Issue
-
area/plugin good first issue
难度 2/5 1-3 小时 新手友好度 88/100
kestra-io/plugin-kestra#200 ·
维护者通常 1 天内回复
-
bug untriaged
难度 1/5 1 小时以内 新手友好度 92/100
opensearch-project/search-relevance#618 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
apache/rocketmq-dashboard#6716 ·
维护者通常 3 天内回复
-
DefaultRedisList.get(int) does not reject an index equal to the list size可能已有人在做 @ryujungkyun 今天认领。 未关闭status: waiting-for-triage
难度 1/5 1 小时以内 新手友好度 68/100
spring-projects/spring-data-redis#3471 ·
维护者通常 5 天内回复
-
in: build type: dependency-upgrade
难度 1/5 1 小时以内 新手友好度 62/100
spring-projects/spring-ldap#1791 ·
维护者通常 1 天内回复