YGY-001 opened a new issue, #2539:
URL: https://github.com/apache/age/issues/2539
Docker image `apache/age:release_PG18_1.7.0`.
**Reproduction**
```sql
LOAD 'age';
SET search_path = ag_catalog, public;
SELECT ag_catalog.create_graph('age_issue_case13');
SELECT *
FROM ag_catalog.cypher('age_issue_case13', $$
CREATE (c {id: 1001})-[:rt13]->(a {id: 1002})
$$) AS (v agtype);
SELECT *
FROM ag_catalog.cypher('age_issue_case13', $$
MATCH (c {id: 1001})
CREATE (c)-[:rt13]->(b {id: 1003})
$$) AS (v agtype);
SELECT *
FROM ag_catalog.cypher('age_issue_case13', $$
UNWIND [1] AS i
MATCH p = ()-[:rt13*..6]-(n)
DETACH DELETE n
RETURN i
$$) AS (i agtype);
```
**Expected**
The query completes and returns the scalar `i` for each matched path row.
Deleting the matched vertices must not make the scalar-only `RETURN` fail.
**Actual**
Apache AGE `1.7.0` reports an internal executor error instead of returning
the rows:
```text
ERROR: add_valid_vertex_edges: no vertex found
--
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]