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 2021/08/17 12:26:19 UTC

[GitHub] [incubator-age] Misterion777 opened a new issue #105: List comprehensions

Misterion777 opened a new issue #105:
URL: https://github.com/apache/incubator-age/issues/105


   Hey, 
   are list comprehensions supported in AGE?
   Using syntax from Neo4j doesnt seem to work, simple example:
   ```
   SELECT * FROM cypher('g1', $$
   MATCH (v)
   RETURN [x in v.array_field]
   $$) as (a 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] [incubator-age] Misterion777 commented on issue #105: List comprehensions

Posted by GitBox <gi...@apache.org>.
Misterion777 commented on issue #105:
URL: https://github.com/apache/incubator-age/issues/105#issuecomment-900345053


   > You mean that this query(array_field) is working or not with AGE?
   > 
   > I tried that query. Once it works as 'query' (return as jsonb from Pgadmin).
   > 
   > But I'm not sure this result is correct(Because it returns null).
   > 
   > Someone who knows this issue?
   
   array_field is some random array which is an attribute of a graph vertex.
   i'm trying it with AGE and receiving following error:
   ```
   ERROR:  variable `x` does not exist
   LINE 3: RETURN [x in v.test_ids]
   ```
   


-- 
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] [incubator-age] Halkrine commented on issue #105: List comprehensions

Posted by GitBox <gi...@apache.org>.
Halkrine commented on issue #105:
URL: https://github.com/apache/incubator-age/issues/105#issuecomment-900817895


   Understood.
   
   Maybe, that function is not supported yet now..


-- 
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] [incubator-age] Halkrine commented on issue #105: List comprehensions

Posted by GitBox <gi...@apache.org>.
Halkrine commented on issue #105:
URL: https://github.com/apache/incubator-age/issues/105#issuecomment-900357776


   replace x -> v and try 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] [incubator-age] JoshInnis commented on issue #105: List comprehensions

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


   Hi, List Comprehensions are not currently supported


-- 
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] [incubator-age] Misterion777 edited a comment on issue #105: List comprehensions

Posted by GitBox <gi...@apache.org>.
Misterion777 edited a comment on issue #105:
URL: https://github.com/apache/incubator-age/issues/105#issuecomment-900345053


   > You mean that this query(array_field) is working or not with AGE?
   > 
   > I tried that query. Once it works as 'query' (return as jsonb from Pgadmin).
   > 
   > But I'm not sure this result is correct(Because it returns null).
   > 
   > Someone who knows this issue?
   
   array_field is some random array which is an attribute of a graph vertex.
   i'm trying it with AGE and receiving following error:
   ```
   ERROR:  variable `x` does not exist
   LINE 3: RETURN [x in v.array_field]
   ```
   


-- 
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] [incubator-age] Misterion777 commented on issue #105: List comprehensions

Posted by GitBox <gi...@apache.org>.
Misterion777 commented on issue #105:
URL: https://github.com/apache/incubator-age/issues/105#issuecomment-900362053


   > replace x -> v and try it.
   
   no, it should be another variable: it should iterate through the array like in any list comprehension


-- 
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] [incubator-age] Halkrine commented on issue #105: List comprehensions

Posted by GitBox <gi...@apache.org>.
Halkrine commented on issue #105:
URL: https://github.com/apache/incubator-age/issues/105#issuecomment-900340370


   You mean that this query(array_field) is working or not with AGE?
   
   I tried that query. Once it works as 'query' (return as jsonb from Pgadmin). 
   
   But I'm not sure this result is correct(Because it returns null). 
   
   
   Someone who knows this issue?


-- 
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] [incubator-age] JoshInnis commented on issue #105: List comprehensions

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


   Hi, List Comprehensions are not currently supported


-- 
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] [incubator-age] Halkrine commented on issue #105: List comprehensions

Posted by GitBox <gi...@apache.org>.
Halkrine commented on issue #105:
URL: https://github.com/apache/incubator-age/issues/105#issuecomment-900817895


   Understood.
   
   Maybe, that function is not supported yet now..


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