Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug] Cypher endpoint rejects the standard date() function as unknown

未关闭
#3,318 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java
领域
databases

调研方向

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
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:latest as 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/hugegraph 的其他 Issue

查看 apache/hugegraph 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。