agensgraph icon indicating copy to clipboard operation
agensgraph copied to clipboard

alternative to `range`

Open zhiboz opened this issue 5 years ago • 1 comments

It appears range available in Neo4j Cypher isn't available in agensgraph. Is there a workaround in ag? Thanks!

zhiboz avatar Oct 20 '20 19:10 zhiboz

Range is now available in AgensGraph

postgres=# select version();
                                                                  version                                                                   
--------------------------------------------------------------------------------------------------------------------------------------------
 PostgreSQL 15.12 (AgensGraph 2.15) on aarch64-apple-darwin20.6.0, compiled by Apple clang version 13.0.0 (clang-1300.0.29.3), 64-bit
(1 row)
 postgres=# RETURN range(0, 10), range(2, 18, 3), range(0, 5, -1);
               range                |         range         | range 
------------------------------------+-----------------------+-------
 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | [2, 5, 8, 11, 14, 17] | []

uhayat avatar Apr 02 '25 09:04 uhayat