-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
order by report column not found while it does exists #4930
Comments
This query first finds all The The Thus, according to the definition of ORDER BY in cypher, all variables in the with clause before the projection should be available to the ORDER BY. Reference: Cypher Query Language Reference, Version 9
|
|
@xtcyclist can i contribute in this repo |
You're welcomed to start from good first issues, if you'd like to contribute. |
We have decided not to address this compatibility (with openCypher) issue. Order-by won't support sorting by columns not listed in the return clause. If a query wants to sort its results, it has to do so on a column listed in the return clause. BTW, there is no correctness issues on order-by. |
Please check the FAQ documentation before raising an issue
Describe the bug (required)
Look at the query in Nebula below, Nebula report column
a0
not found, while it does exists:In contrast, Neo4j return expected result:
$ MATCH (v)-->(t) WHERE v.id in [1, 2, 3, 4, 5, 6, 7] WITH v, t, count(t) as a0 WHERE a0 > 1 return v.id AS r0, t.id AS r1 ORDER BY a0 ╒════╤════╕ │"r0"│"r1"│ ╞════╪════╡ │3 │6 │ ├────┼────┤ │5 │24 │ ├────┼────┤ │6 │23 │ ├────┼────┤ │4 │13 │ ├────┼────┤ │4 │20 │ ├────┼────┤ │2 │2 │ └────┴────┘
Your Environments (required)
uname -a
g++ --version
orclang++ --version
lscpu
a3ffc7d8
) be2c294How To Reproduce(required)
Steps to reproduce the behavior:
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: