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

Inconsistent results caused by adding “ORDER BY" #3205

Open
ljhhuxiaoba opened this issue Oct 3, 2023 · 1 comment
Open

Inconsistent results caused by adding “ORDER BY" #3205

ljhhuxiaoba opened this issue Oct 3, 2023 · 1 comment

Comments

@ljhhuxiaoba
Copy link

I execute two queries on my empty RedisGraph and get an error.

Redis version:7.2.0
RedisGraph version: v2.12.10
operating system: windows 11
API:Cypher version 9

Steps to reproduce:

Execute the following two queries separately
GRAPH.QUERY graph "UNWIND NULL AS a0 OPTIONAL MATCH (:LL) RETURN percentileDisc(NULL,0) AS a1"
GRAPH.QUERY graph "UNWIND NULL AS a0 OPTIONAL MATCH (:LL) RETURN percentileDisc(NULL,0) AS a1 ORDER BY TRUE"

I think these two queries are equivalent, but the first query returns a single row of results, while the second returns an empty result.
I think the "ORDER BY TRUE" clause should not change the return result.

@gkorland
Copy link
Contributor

gkorland commented Oct 3, 2023

ref #3205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants