YGY-001 opened a new issue, #2538:
URL: https://github.com/apache/age/issues/2538
Environment: Apache AGE `1.7.0`, PostgreSQL `18.1`, image
## Reproduction
```cypher
CREATE (n {id: 1})
WITH n AS alias0
MATCH (alias0)
RETURN alias0
```
Observed error:
```text
ERROR: variable 'alias0' already exists
```
The same error occurs after a second boundary:
```cypher
CREATE (n {id: 1})
WITH n AS alias0
WITH alias0
MATCH (alias0)
RETURN alias0
```
The two renamed-alias queries both produced the existing-variable error. The
control query below succeeded and returned the created vertex:
```cypher
CREATE (n {id: 4})
WITH n
MATCH (n)
RETURN n
```
Therefore this is not a generic prohibition on reusing an already-bound
pattern variable. The failure is specific to the entity projection alias.
--
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]