MatheusFarias03 opened a new pull request, #789:
URL: https://github.com/apache/age/pull/789
Renamed the `getChildren` function to `get_child_edges` to standardize the
code, and removed unnecessary lines. Added regression tests in the
`cypher_vle.sql` file but when executing it with the installcheck, it throws an
error when testing for scalar property matching.
```
-- Test scalar property matching - should match 1
SELECT count(edges) FROM start_and_end_points, age_vle(
'"cypher_vle"'::agtype, start_vertex, end_vertex, '{"id": 1111111111111111,
"label": "", "end_id": 2222222222222222, "start_id": 333333333333333,
"properties": {"name": "main edge"}}::edge'::agtype, '1'::agtype,
'null'::agtype, '1'::agtype);
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
connection to server was lost
```
Although, the VLE does find the child edges of the parent when executing the
following queries:
```sql
SELECT create_graph('vle_inheritance_graph');
SELECT create_vlabel('vle_inheritance_graph', 'Head');
SELECT create_vlabel('vle_inheritance_graph', 'Tail');
SELECT create_vlabel('vle_inheritance_graph', 'Node');
SELECT create_elabel('vle_inheritance_graph', 'PARENT_EDGE_A');
SELECT create_elabel('vle_inheritance_graph', 'PARENT_EDGE_B');
SELECT create_elabel('vle_inheritance_graph', 'CHILD_EDGE_A',
ARRAY['PARENT_EDGE_A']);
SELECT create_elabel('vle_inheritance_graph', 'CHILD_EDGE_B',
ARRAY['PARENT_EDGE_B']);
SELECT * FROM cypher('vle_inheritance_graph', $$
CREATE (:Head {id: 1})-[:PARENT_EDGE_A]->(:Node {id:
2})-[:CHILD_EDGE_A]->(:Node {id: 3})-[:PARENT_EDGE_A]->(:Tail {id: 4}),
(:Head {id: 5})-[:PARENT_EDGE_B]->(:Node {id:
6})-[:CHILD_EDGE_B]->(:Node {id: 7})-[:PARENT_EDGE_B]->(:Tail {id: 8})
$$) AS (a agtype);
SELECT * FROM cypher('vle_inheritance_graph', $$
MATCH (a)-[:PARENT_EDGE_A*1]->(b)
RETURN a.id, b.id
$$) AS (a_id agtype, b_id agtype);
a_id | b_id
------+------
1 | 2
2 | 3
3 | 4
(3 rows)
```
To solve the test problem, it would probably be best to do this in the
`load_edge_hashtable` function.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]