apache / apache/age-website

Error in interpretation of the MERGE clause

Open
#327 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
42
Forks
69
PR merge metrics
No merged PRs in 30d

Description

In the documentation of the MERGE clause, there is an example as shown below, which I personally think is problematic.
![image](https://github.com/apache/age-website/assets/7849596/3d13d011-2e94-415e-b3fc-72f50adee720)
In the following sql statement
'''
SELECT * FROM cypher('graph_name', $$
MERGE (charlie {name: 'Charlie Sheen', age: 10})
RETURN charlie
$$) as (v agtype);
'''
No label name is given.
So the sentence "If there exists a vertex with the label 'Critic', that vertex will be returned. Otherwise, the vertex will be created and returned." should be deleted.
And output
{id: 0; label: ‘Actor’: properties:{name: 'Charlie Sheen', age: 10}}::vertex
should be
{id: 0; label: ‘’: properties:{name: 'Charlie Sheen', age: 10}}::vertex
![image](https://github.com/apache/age-website/assets/7849596/44fc78e2-f8f3-4b08-8aae-671739ad1631)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.