RETURN does not accomodate returned paths
- Dominant language
- C
- Stars
- 4.8k
- Forks
- 523
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 9
Description
**Describe the bug**
RETURN does not return a tuple of paths in its current syntax and form.
**How are you accessing AGE (Command line, driver, etc.)?**
- AGE ver. 1.4.0 based on the current main branch.
**What data setup do we need to do?**
Have a database.
**What is the command that caused the error?**
```pgsql
SELECT * FROM cypher('matrix', $$ MATCH (a)-[]->(b) RETURN (a)-[]-(b)$$) as (a agtype);
```
```
ERROR: must be scalar value, not array or object
```
**Expected behavior**
According to the OpenCypher specification, This query should return a tuple of elements that satisfy the MATCH requirement.
**Environment (please complete the following information):**
- Version: [e.g. 1.6.0], latest main branch. This should be reproducible in any version of Postgres.
Contributor guide
Assessment
This issue has not been assessed yet.