Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support of empty list #3563

Closed
wey-gu opened this issue Dec 25, 2021 · 3 comments
Closed

support of empty list #3563

wey-gu opened this issue Dec 25, 2021 · 3 comments
Labels
incompatible PR: incompatible with the recently released version type/enhancement Type: make the code neat or more efficient

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Dec 25, 2021

This [] seems to be a straightforward expression/alias, rather than collect(NULL), and it's valid in n4j.

(root@nebula) [amundsen]> return collect(NULL)
+---------------+
| collect(NULL) |
+---------------+
| []            |
+---------------+
Got 1 rows (time spent 354/39434 us)

Sat, 25 Dec 2021 15:51:50 CST

(root@nebula) [amundsen]> return range(1,0)
+------------+
| range(1,0) |
+------------+
| []         |
+------------+
Got 1 rows (time spent 288/32831 us)

Sat, 25 Dec 2021 15:52:03 CST

(root@nebula) [amundsen]> return []
[ERROR (-1004)]: SyntaxError: syntax error near `]'

Sat, 25 Dec 2021 15:52:07 CST
@wey-gu wey-gu added the type/enhancement Type: make the code neat or more efficient label Dec 25, 2021
@jievince
Copy link
Contributor

Please have a look at #2894, see why we don't support empty list.

@wey-gu
Copy link
Contributor Author

wey-gu commented Dec 25, 2021

Thanks a lot @jievince! Got it:) closing it.

@wey-gu
Copy link
Contributor Author

wey-gu commented Oct 28, 2022

@jievince should we reopen this now to make it more cypher compatible?

@wey-gu wey-gu added the incompatible PR: incompatible with the recently released version label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incompatible PR: incompatible with the recently released version type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

2 participants