Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#3,318 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Java
Stelle
3.2k
Fork
641
Merge medio
1g 11h
PR unite (30g)
48

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/hugegraph

Tutte le issue di apache/hugegraph

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.