Skip to content

Commit

Permalink
Fix bogus failure of test expr (apache#1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
saygoodbyye authored Apr 10, 2024
1 parent 64b509d commit 4d5c404
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion regress/expected/expr.out
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
SET extra_float_digits = 0;
LOAD 'age';
SET search_path TO ag_catalog;
SET force_parallel_mode TO regress;
SELECT * FROM create_graph('expr');
NOTICE: graph "expr" has been created
create_graph
Expand Down Expand Up @@ -7263,7 +7264,7 @@ SELECT * FROM cypher('keys', $$MATCH (v) RETURN keys(v)$$) AS (vertex_keys agtyp
["age", "job", "name"]
(4 rows)

SELECT * FROM cypher('keys', $$MATCH ()-[e]-() RETURN keys(e)$$) AS (edge_keys agtype);
SELECT * FROM cypher('keys', $$MATCH ()-[e]-() RETURN keys(e) ORDER BY e DESC $$) AS (edge_keys agtype);
edge_keys
-----------
[]
Expand Down
4 changes: 2 additions & 2 deletions regress/sql/expr.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
SET extra_float_digits = 0;
LOAD 'age';
SET search_path TO ag_catalog;

SET force_parallel_mode TO regress;
SELECT * FROM create_graph('expr');

--
Expand Down Expand Up @@ -3024,7 +3024,7 @@ SELECT * FROM cypher('keys', $$CREATE ({name: 'keiko fuji', age: 62, job: 'singe
SELECT * FROM cypher('keys', $$MATCH (a),(b) WHERE a.name = 'hikaru utada' AND b.name = 'alexander guy cook' CREATE (a)-[:collaborated_with {song:"one last kiss"}]->(b)$$) AS (result agtype);
SELECT * FROM cypher('keys', $$MATCH (a),(b) WHERE a.name = 'hikaru utada' AND b.name = 'keiko fuji' CREATE (a)-[:knows]->(b)$$) AS (result agtype);
SELECT * FROM cypher('keys', $$MATCH (v) RETURN keys(v)$$) AS (vertex_keys agtype);
SELECT * FROM cypher('keys', $$MATCH ()-[e]-() RETURN keys(e)$$) AS (edge_keys agtype);
SELECT * FROM cypher('keys', $$MATCH ()-[e]-() RETURN keys(e) ORDER BY e DESC $$) AS (edge_keys agtype);
SELECT * FROM cypher('keys', $$RETURN keys({a:1,b:'two',c:[1,2,3]})$$) AS (keys agtype);

--should return empty list
Expand Down

0 comments on commit 4d5c404

Please sign in to comment.