MuhammadTahaNaveed opened a new issue, #829:
URL: https://github.com/apache/age/issues/829

   **Describe the bug**
   Reuse of variable with label constraint in concurrent MATCH clauses neither 
filter nor error out 'multiple labels for variable not supported'
   
   **How are you accessing AGE (Command line, driver, etc.)?**
   - Command Line
   
   **What data setup do we need to do?**
   ```pgsql
   ...
   SELECT * from cypher('graph', $$
     CREATE ({name:'bobby'}),
            (:Person {name:'bobby'}),
            (:Bobby {name:'bobby'})
   $$) as (a agtype);
   ...
   ```
   
   
   **What is the command that caused the error?**
   ```pgsql
   SELECT * from cypher('graph', $$
         MATCH (u)
         MATCH (u:Person)
         RETURN u;
   $$) as (a agtype);
   ```
   ```
                                             a                                  
        
   
-------------------------------------------------------------------------------------
    {"id": 281474976710657, "label": "", "properties": {"name": 
"bobby"}}::vertex
    {"id": 844424930131969, "label": "Person", "properties": {"name": 
"bobby"}}::vertex
    {"id": 1125899906842625, "label": "Bobby", "properties": {"name": 
"bobby"}}::vertex
   (3 rows)
   
   ```
   
   **Expected behavior**
   Most probably, should have error out like in `MATCH (a),(a:Person)` saying 
`ERROR:  multiple labels for variable 'u' are not supported`,
   
   **Environment (please complete the following information):**
   - Version: Latest
   
   


-- 
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