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

   @liuyhs I ran your entire query (all of the building of data and the final 
query) against the latest master branch and it worked without issue -
   
   ```
   psql-15.4-5432-pgsql=# SELECT * FROM cypher('cmdb_graph', $$
   psql-15.4-5432-pgsql$#     MATCH p = (:CVM  {id: '10'})-[*2]-()
   psql-15.4-5432-pgsql$#     unwind nodes(p) as n
   psql-15.4-5432-pgsql$#       with p, size(collect(distinct n)) as testLength
   psql-15.4-5432-pgsql$#     where testLength = LENGTH(p) + 1
   psql-15.4-5432-pgsql$#     RETURN relationships(p)
   psql-15.4-5432-pgsql$# $$) as (r agtype);
   
                                                                                
                        r
   
   
   
------------------------------------------------------------------------------------------------------------------------------------
   
------------------------------------------------------------------------------------------------------------------------------------
   
------------------------------------------------------------------------------------------------------------------------------------
   -----------------------------------------------------------------------
    [{"id": 844424930131987, "label": "Contain", "end_id": 1688849860263946, 
"start_id": 1407374883553290, "properties": {"id": "10", "
   lid": "10", "rid": "10010", "ruleId": "10", "displayName": "连接", 
"isAutoGenerate": "1"}}::edge, {"id": 844424930151987, "label": "
   Contain", "end_id": 1970324836974602, "start_id": 1688849860263946, 
"properties": {"id": "30010", "lid": "10010", "rid": "30010", "r
   uleId": "10", "displayName": "连接", "isAutoGenerate": "1"}}::edge]
    [{"id": 844424930131987, "label": "Contain", "end_id": 1688849860263946, 
"start_id": 1407374883553290, "properties": {"id": "10", "
   lid": "10", "rid": "10010", "ruleId": "10", "displayName": "连接", 
"isAutoGenerate": "1"}}::edge, {"id": 844424930151988, "label": "
   Contain", "end_id": 1970324836994602, "start_id": 1688849860263946, 
"properties": {"id": "50010", "lid": "10010", "rid": "50010", "r
   uleId": "10", "displayName": "连接", "isAutoGenerate": "1"}}::edge]
    [{"id": 844424930131988, "label": "Contain", "end_id": 1688849860273946, 
"start_id": 1407374883553290, "properties": {"id": "10010"
   , "lid": "10", "rid": "20010", "ruleId": "10", "displayName": "连接", 
"isAutoGenerate": "1"}}::edge, {"id": 844424930171987, "label"
   : "Contain", "end_id": 1970324836984602, "start_id": 1688849860273946, 
"properties": {"id": "40010", "lid": "20010", "rid": "40010",
    "ruleId": "10", "displayName": "连接", "isAutoGenerate": "1"}}::edge]
    [{"id": 844424930131988, "label": "Contain", "end_id": 1688849860273946, 
"start_id": 1407374883553290, "properties": {"id": "10010"
   , "lid": "10", "rid": "20010", "ruleId": "10", "displayName": "连接", 
"isAutoGenerate": "1"}}::edge, {"id": 844424930171988, "label"
   : "Contain", "end_id": 1970324837004602, "start_id": 1688849860273946, 
"properties": {"id": "60010", "lid": "20010", "rid": "60010",
    "ruleId": "10", "displayName": "连接", "isAutoGenerate": "1"}}::edge]
   (4 rows)
   
   psql-15.4-5432-pgsql=#
   ```
   


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

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

Reply via email to