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

   Interesting. There appears to be a positional component to this bug -
   ```
   psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 
42, label: "label_name", properties: {} }::vertex as v return { z: "asdf", v: v 
} $$) AS (c ag_catalog.agtype);
                                         c
   -----------------------------------------------------------------------------
    {"v": {"id": 42, "label": "label_name", "properties": {}}::vertex, "z": ""}
   (1 row)
   
   psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 
42, label: "label_name", properties: {} }::vertex as z return { v: "asdf", z: z 
} $$) AS (c ag_catalog.agtype);
                                           c
   
---------------------------------------------------------------------------------
    {"v": "asdf", "z": {"id": 42, "label": "label_name", "properties": 
{}}::vertex}
   (1 row)
   ```
   ```
   psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 
42, label: "label_name", properties: {} }::vertex as v return { a: "ASDF", z: 
"asdf", v: v } $$) AS (c ag_catalog.agtype);
                                                 c
   
----------------------------------------------------------------------------------------------
    {"a": "ASDF", "v": {"id": 42, "label": "label_name", "properties": 
{}}::vertex, "z": " asd"}
   (1 row)
   
   psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 
42, label: "label_name", properties: {} }::vertex as z return { a: "ASDF", v: 
"asdf", z: z } $$) AS (c ag_catalog.agtype);
                                                 c
   
----------------------------------------------------------------------------------------------
    {"a": "ASDF", "v": "asdf", "z": {"id": 42, "label": "label_name", 
"properties": {}}::vertex}
   (1 row)
   ```
   
   
   


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