You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by "waterWang (via GitHub)" <gi...@apache.org> on 2026/08/23 12:09:22 UTC
[PR] Fix entity-projection alias in WITH clause causing MATCH to fail [age]
waterWang opened a new pull request, #2544:
URL: https://github.com/apache/age/pull/2544
Fix entity-projection alias in WITH clause causing MATCH to fail
When a vertex variable is renamed via an entity-projection alias in a WITH
clause (e.g. WITH n AS alias0), a subsequent MATCH (alias0) failed with
"variable 'alias0' already exists". The alias was created as a target-list
entry but no transform_entity was registered for the alias name, so
find_variable could not find it.
Fix: in transform_cypher_node, when te != NULL && entity == NULL but the
variable is visible as a column from a previous clause (colNameToVar
returns non-NULL), return the column reference directly instead of
erroring. The caller creates the transform_entity, allowing subsequent
clauses to reference the aliased variable.
Fixes #2538
--
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: commits-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org