You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "Zainab-Saad (via GitHub)" <gi...@apache.org> on 2023/08/18 12:02:22 UTC
[GitHub] [age] Zainab-Saad opened a new issue, #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
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-unsubscribe@age.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] Zainab-Saad commented on issue #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
Posted by "Zainab-Saad (via GitHub)" <gi...@apache.org>.
Zainab-Saad commented on issue #1159:
URL: https://github.com/apache/age/issues/1159#issuecomment-1684123405
@rafsun42 I have created a PR for this, could you review that?
--
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-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] rafsun42 closed issue #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
Posted by "rafsun42 (via GitHub)" <gi...@apache.org>.
rafsun42 closed issue #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
URL: https://github.com/apache/age/issues/1159
--
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-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] Zainab-Saad commented on issue #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
Posted by "Zainab-Saad (via GitHub)" <gi...@apache.org>.
Zainab-Saad commented on issue #1159:
URL: https://github.com/apache/age/issues/1159#issuecomment-1684133605
@rafsun42 version is PG 15.1. with the data setup I have provided, this query terminated.
--
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-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] rafsun42 commented on issue #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
Posted by "rafsun42 (via GitHub)" <gi...@apache.org>.
rafsun42 commented on issue #1159:
URL: https://github.com/apache/age/issues/1159#issuecomment-1684129032
@Zainab-Saad This query didn't terminate on my machine (Master, PG15). What PG version are you using?
```
SELECT * FROM cypher('graph', $$
MATCH (n: A) SET n += {bool: true} RETURN n
$$) AS (result agtype);
```
--
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-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] rafsun42 commented on issue #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
Posted by "rafsun42 (via GitHub)" <gi...@apache.org>.
rafsun42 commented on issue #1159:
URL: https://github.com/apache/age/issues/1159#issuecomment-1684122397
@Zainab-Saad Are you working on it?
--
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-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] rafsun42 commented on issue #1159: Server terminates for SET plus-equal when the original properties has a non-scalar value
Posted by "rafsun42 (via GitHub)" <gi...@apache.org>.
rafsun42 commented on issue #1159:
URL: https://github.com/apache/age/issues/1159#issuecomment-1684145427
@Zainab-Saad
Is this the expected result for your data setup? Could you put this on the "Expected behavior" section in case anyone else wants to reproduce the issue.
```
agedev=# SELECT * FROM cypher('graph', $$
MATCH (n: A) SET n += {bool: true} RETURN n
$$) AS (result agtype);
result
----------------------------------------------------------------------------------------------
{"id": 844424930131969, "label": "A", "properties": {"map": {"a": 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-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org