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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to