8000 PyOrient gives results that differ from OrientDB studio · Issue #280 · mogui/pyorient · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
PyOrient gives results that differ from OrientDB studio #280
Open
@rohit-mohan

Description

@rohit-mohan

capture

I have a graph as shown in the image above.
When I run the query :

      traverse outE('has_component').inV() 
      from 
        (select expand(rid) from index:part.part_id where key = 'A') 
      maxdepth 2 strategy breadth_first

in OrientDB Studio I get all the vertices. In fact that is how I generated the graph visualization.

But when I run the same using client.query() function as follows,

cmd = """
      traverse outE('has_component').inV() 
      from 
        (select expand(rid) from index:part.part_id where key = 'A') 
      maxdepth 2 strategy breadth_first
"""

r = client.query(cmd, -1)

I get only the first record (i.e 'A'). Why is this happening? How can get the same output through pyorient as I do through OrientDB Studio?

OrientDB version : 3.0.15
pyorient version : 1.5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0