run_cypher binds empty list and object params differently on Kuzu
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, typescript
- Ambito
- backend-api-design, database
Direzione di ricerca
Start with _run parameter binding in src/selfgraph/stores/kuzu.py and typescript/src/stores/kuzu.ts, then compare how each SDK passes empty lists and objects to Kuzu. Reproduce with the RETURN $x AS x examples in the issue. Done when both SDKs return the same value without losing it, or reject it with invalid_argument naming the parameter.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
On Kuzu, run_cypher binds an empty list or empty object parameter differently in each SDK:
| Query | Params | Python | TypeScript |
|---|---|---|---|
RETURN $x AS x |
{"x": []} |
query_failed: Kuzu query failed: Runtime exception: Trying to a create a vector with ANY type. This should not happen. Data type is expected to be resolved during binding. |
{"x": null} |
RETURN $x AS x |
{"x": {}} |
{"x": {}} |
{"x": null} |
So Python fails on a valid JSON parameter with an internal Kuzu error, and TypeScript silently turns both values into null.
Reproduce
On 04862c4, with a Kuzu graph g:
await g.run_cypher("RETURN $x AS x", {"x": []}) # raises query_failed
await g.run_cypher("RETURN $x AS x", {"x": {}}) # rows [{"x": {}}]
await g.runCypher("RETURN $x AS x", { x: [] }); // rows [{ x: null }]
await g.runCypher("RETURN $x AS x", { x: {} }); // rows [{ x: null }]
The MCP run_cypher tool and CLI query --param x=[] show the same split.
Expected
The same result in both SDKs, without losing the value. Either bind empty lists and maps with a type Kuzu can resolve, or reject them with invalid_argument naming the parameter.
Where
src/selfgraph/stores/kuzu.py,_runparameter bindingtypescript/src/stores/kuzu.ts,_runparameter binding
- Lingua principale
- TypeScript
- Stelle
- 173
- Fork
- 58
- Merge medio
- 6h
- PR unite (30g)
- 120
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hydra-db/selfgraph
-
approved-for-pr area: cli-mcp area: errors bug effort: S P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
hydra-db/selfgraph#401 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
approved-for-pr area: errors area: store bug effort: S P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
hydra-db/selfgraph#398 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
approved-for-pr area: errors area: write bug effort: S P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
hydra-db/selfgraph#392 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
approved-for-pr area: parity area: write bug effort: S P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hydra-db/selfgraph#391 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hydra-db/selfgraph
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
code-yeongyu/senpi#7139 ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
lingdojo/kana-dojo#34395 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
bug status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mastra-ai/mastra#31093 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:web p2 product:business triage:active type:bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 89/100
cuadrao-ai/argus#2328 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
nikhilb2/simple_invoicing#907 ·