TuGraph-family / tugraph-db

TuGraph is a high performance graph database.
https://tugraph.org
Apache License 2.0
1.31k stars 181 forks source link

[from gealink] Cypher 参数化报错 #433

Open liaoxj opened 4 months ago

liaoxj commented 4 months ago

语句: Query{text='MATCH (n:movie {id: -457591175}) SET n.summary = $summary, n.duration = $duration, n.rated = $rated, n.tagline = $tagline, n.id = $id, n.title = $title, n.poster_image = $poster_image RETURN n', parameters={summary: "summary-457593175", duration: 100, rated: "2009", tagline: "tagline-457593175", id: -457591175, title: "title-457593175", poster_image: "poster_image-457593175"}}

错误:ParserException: line 1:58 no viable alternative at input 'MATCH (n:movie {id: -457591175}) SET n.summary = $summary, '

语句: Query{text='unwind $batch AS row CREATE (n:movie {rated=$row.rated, duration=$row.duration, summary=$row.summary, tagline=$row.tagline, id=$row.id, title=$row.title, poster_image=$row.poster_image}) RETURN n', parameters={batch: [{summary: "summary78668217", duration: 100, rated: "2009", tagline: "tagline78668217", id: 78670217, title: "title78668217", poster_image: "poster_image78668217"}]}}

错误:Unexpected cypher parameter type, parameter: batch

gtahoo commented 4 months ago

请提供一下版本及环境信息,我们复现排查一下