You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2022/07/09 08:20:08 UTC

[GitHub] [age] wqxs opened a new issue, #239: Attribute values of object types cannot be modified

wqxs opened a new issue, #239:
URL: https://github.com/apache/age/issues/239

   I created a point
   `SELECT *
   FROM ag_catalog.cypher('zjdata_graph', $$
   CREATE (a:a {id:1,map:{name:'a'}})
   RETURN id(a), properties(a) 
   $$) as (id ag_catalog.agtype,properties ag_catalog.agtype)`
   
   results are as follows
   ![image](https://user-images.githubusercontent.com/69672009/178097627-e5741bb9-1c91-4185-8d18-d423ea2ccf4b.png)
   
   I modify the map property value
   `SELECT *
   FROM ag_catalog.cypher('zjdata_graph', $$
   MATCH (a:a)
   WHERE a.id = 1
   SET a.map = '{"name":"b"}'
   RETURN id(a), properties(a) 
   $$) as (id ag_catalog.agtype,properties ag_catalog.agtype)`
   
   This is not the result I want, please tell me how to solve it
   ![AY6K8H4WW~_58$(JSEE1ISV](https://user-images.githubusercontent.com/69672009/178097829-b4199ade-c876-4246-a9dd-7bfa991bd741.png)
   
   


-- 
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] JoshInnis commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180057602

   What version of AGE are you using? I am testing on Master.
   
   <img width="1728" alt="image" src="https://user-images.githubusercontent.com/7564930/178210751-f2b0e27d-327c-4e30-98c5-048ea51d05ba.png">
   


-- 
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] JoshInnis commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180097756

   Without upgrading, there is a workaround that was found. https://github.com/apache/age/issues/44 Basically if you wrap the map in an array, the first element in the array will be what the property is set to.


-- 
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] JoshInnis commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180048931

   Ahh, sorry for the oversight. Property names don't need to be wrapped with `"`. 
   
   `SELECT * FROM ag_catalog.cypher('zjdata_graph', $$ 
       MATCH (a:a) 
       WHERE a.id = 1 
       SET a.map = {name:"b"} 
       RETURN id(a), properties(a)
   $$) as (id ag_catalog.agtype,properties ag_catalog.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] wqxs commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
wqxs commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180065920

   > The bug fix is not in an official release, its only in master [ab70781](https://github.com/apache/age/commit/ab70781b4b311922f14f2bcb1b2144f1df9a9da1) how did you get AGE, through a release, docker, or did you download the source code?
   
   I used Docker to download it around the end of April,how do I replace this plugin if I want to use the latest version


-- 
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] JoshInnis commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180015900

   Hi, `SET a.map = '{"name":"b"}'  ` is setting the value of a.map to a string, not a map. remove the surrounding `'`s `SELECT * FROM ag_catalog.cypher('zjdata_graph', $$ MATCH (a:a) WHERE a.id = 1 SET a.map = {"name":"b"} RETURN id(a), properties(a) $$) as (id ag_catalog.agtype,properties ag_catalog.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] wqxs commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
wqxs commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180036362

   > 嗨,正在将a.map的值设置为字符串,而不是map。去除周围的`SET a.map = '{"name":"b"}' ``'``SELECT * FROM ag_catalog.cypher('zjdata_graph', $$ MATCH (a:a) WHERE a.id = 1 SET a.map = {"name":"b"} RETURN id(a), properties(a) $$) as (id ag_catalog.agtype,properties ag_catalog.agtype)`
   
   I want to change the values in the map, but I can't
   ![image](https://user-images.githubusercontent.com/69672009/178206469-0aa37fe0-4bd8-4a36-9d9f-925c95b27f48.png)


-- 
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] JoshInnis commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180061333

   The bug fix is not in an official release, its only in master https://github.com/apache/age/commit/ab70781b4b311922f14f2bcb1b2144f1df9a9da1 how did you get AGE, through a release, docker, or did you download the source code?


-- 
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] wqxs commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
wqxs commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180117713

   > 
   
   
   
   > > Try to pull the docker image again `docker pull apache/age` for this bug fix you should be able to restart the session and the bug will be fixed. However, if you can lose the data in the database, I recommend dropping the extension and recreating it.
   > 
   > After using the latest version, the error is fixed, but the Docker mapping directory cannot be used on the latest version of Docker
   
   Can an upgrade version be made without affecting the data?


-- 
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] wqxs commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
wqxs commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180055957

   > 啊,抱歉疏忽了。属性名称不需要用 包装。`"`
   > 
   > `SELECT * FROM ag_catalog.cypher('zjdata_graph', $$ MATCH (a:a) WHERE a.id = 1 SET a.map = {name:"b"} RETURN id(a), properties(a) $$) as (id ag_catalog.agtype,properties ag_catalog.agtype)`
   
   It still doesn't work.
   ![image](https://user-images.githubusercontent.com/69672009/178210416-50bb4d51-6fdb-4328-89a3-51ac680d410c.png)
   


-- 
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] wqxs commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
wqxs commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180106223

   > Try to pull the docker image again `docker pull apache/age` for this bug fix you should be able to restart the session and the bug will be fixed. However, if you can lose the data in the database, I recommend dropping the extension and recreating it.
   
   After using the latest version, the error is fixed, but the Docker mapping directory cannot be used on the latest version of Docker


-- 
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] wqxs commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
wqxs commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180058657

   > What version of AGE are you using? I am testing on Master.
   > 
   > <img alt="image" width="1728" src="https://user-images.githubusercontent.com/7564930/178210751-f2b0e27d-327c-4e30-98c5-048ea51d05ba.png">
   
   How to query the version


-- 
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] JoshInnis commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1180077726

   Try to pull the docker image again `docker pull apache/age` for this bug fix you should be able to restart the session and the bug will be fixed. However, if you can lose the data in the database, I recommend dropping the extension and recreating 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] sorrell commented on issue #239: Attribute values of object types cannot be modified

Posted by GitBox <gi...@apache.org>.
sorrell commented on issue #239:
URL: https://github.com/apache/age/issues/239#issuecomment-1181111449

   > > Try to pull the docker image again `docker pull apache/age` for this bug fix you should be able to restart the session and the bug will be fixed. However, if you can lose the data in the database, I recommend dropping the extension and recreating it.
   > 
   > After using the latest version, the error is fixed, but the Docker mapping directory cannot be used on the latest version of Docker
   
   Can you describe what mapping directory this is or share the exact error you are seeing? 


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