Zainab-Saad opened a new issue, #1159:
URL: https://github.com/apache/age/issues/1159

   **Describe the bug**
   Updating properties of a vertex/edge (having a non-scalar value) with SET 
plus-equal terminates the server 
   
   **How are you accessing AGE (Command line, driver, etc.)?**
   Command Line
   
   **What data setup do we need to do?**
   Create 2 vertices with non-scalar property values
   ```
   SELECT * FROM cypher('graph', $$
   CREATE (n: A {map: {a : 1}}), (m: B {lst: [1, 2]})
   $$) AS (result agtype);
   ```
   
   **What is the command that caused the error?**
   This query terminated the server (same for vertex with label `B`)
   ```
   SELECT * FROM cypher('graph', $$
   MATCH (n: A) SET n += {bool: true} RETURN n
   $$) AS (result agtype);
   ```
   
   **Expected behavior**
   Should update the properties as shown 
[here](https://github.com/apache/age/blob/master/regress/expected/cypher_set.out)
 
   
   **Environment (please complete the following information):**
   AGE master (This problem exists for other branches too)
   
   **Additional context**
   SET plus-equal works fine for scalar property values
   ```
   SELECT * FROM cypher('graph', $$
   CREATE (n: C {num : 1}) RETURN n
   $$) AS (result agtype);
   ```
   
   ```
   SELECT * FROM cypher('graph', $$
   MATCH (n: C) SET n += {bool: true} RETURN n
   $$) AS (result agtype);
                                            result                              
           
   
----------------------------------------------------------------------------------------
    {"id": 1407374883553281, "label": "C", "properties": {"num": 1, "bool": 
true}}::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: dev-unsubscr...@age.apache.org.apache.org

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

Reply via email to