apache / apache/age

Should there be a proper error message when using RETURN * without any variable in scope ?

Open
#1,030 8 comments 2 reactions 0 assignees View on GitHub
override-stale question
Dominant language
C
Stars
4.8k
Forks
523
Avg merge
1d 2h
Merged PRs (30d)
9

Description

For the question above, neo4j returns the following error

```
MATCH () RETURN *
```
```
ERROR: RETURN * is not allowed when there are no variables in scope
```

But age generates

```
ERROR: return row and column definition list do not match
```

Should we also generate a proper error message in transformation stage catching this invalid use ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.