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

   @mohayu22 Thank you for finding this. I have a feeling this is a casting 
issue -
   
   ```
   psql-11.5-5432-pgsql=# SELECT * from cypher('graph1', $$
     MATCH (n) SET n.value = rand()::integer RETURN n
   $$) as (result agtype);
                                               result
   
----------------------------------------------------------------------------------------------
    {"id": 844424930131969, "label": "zero", "properties": {"name": "Zero", 
"value": 0}}::vertex
   (1 row)
   
   psql-11.5-5432-pgsql=# SELECT * from cypher('graph1', $$
     MATCH (n) SET n.value = rand()::float RETURN n
   $$) as (result agtype);
                                                       result
   
--------------------------------------------------------------------------------------------------------------
    {"id": 844424930131969, "label": "zero", "properties": {"name": "Zero", 
"value": 0.880863124504685}}::vertex
   (1 row)
   
   psql-11.5-5432-pgsql=# SELECT * from cypher('graph1', $$
     MATCH (n) SET n.value = pi()::integer RETURN n
   $$) as (result agtype);
                                               result
   
----------------------------------------------------------------------------------------------
    {"id": 844424930131969, "label": "zero", "properties": {"name": "Zero", 
"value": 3}}::vertex
   (1 row)
   
   psql-11.5-5432-pgsql=#
   ```
   It might be that, in SET, it is assuming it to be AGTYPE but it isn't.
   
   
   


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