_AR_EXP_UpdateEntityIdx error about reduce() in ORDER BY
gkorland opened this issue · comments
ref: RedisGraph/RedisGraph#3196
@ljhhuxiaoba
I execute a query on my RedisGraph and get an error.
Redis version:7.2.0
RedisGraph version: v2.12.10
operating system: windows 11
API:Cypher version 9
query: MATCH () WITH 1 as a0 ORDER BY reduce(a=a0,b IN []|1) RETURN 1
error message:"_AR_EXP_UpdateEntityIdx: Unable to locate a value with alias a0 within the record"
But if I execute another query "MATCH () WITH 1 as a0 ORDER BY reduce(a=1,b IN []|a0) RETURN 1",then it can run successfully.
Steps to reproduce:
CREATE (); MATCH () WITH 1 as a0 ORDER BY reduce(a=a0,b IN []|1) RETURN 1;
Expected behavior:
The query should run successfully.
Actual behavior:
The query failed.