jrgemignani commented on issue #1629:
URL: https://github.com/apache/age/issues/1629#issuecomment-1971933158

   @MironAtHome I think your misunderstanding with **OPTIONAL MATCH** is with 
how **MATCH** works with **patterns**. **OPTIONAL** **MATCH** and **MATCH** 
process **patterns** in the same way. Using your above graph of one vertex, if 
you execute the following command, you will get no matches -
   
   ```
   psql-16.1-5432-pgsql=# SELECT * FROM cypher('test_graph', $$ MATCH 
(a:vertice1), (b:vertice2) RETURN a, b $$) AS (a agtype, b agtype);
    a | b
   ---+---
   (0 rows)
   
   psql-16.1-5432-pgsql=#
   ```
   
   Note that MATCH returned nothing with the **pattern** `(a:vertice1), 
(b:vertice2)`. This is expected because both patterns do not exist, only one 
does. That is why **OPTIONAL MATCH** returned nothing.


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to