Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messy oRecordData when a location and in()/out() is in projection of a query #18

Open
aemitos opened this issue Jul 19, 2016 · 0 comments

Comments

@aemitos
Copy link

aemitos commented Jul 19, 2016

Hi guys
First, great job with pyorient. Congratulations.
When I query in the console.sh, I got this:

select @rid,location,in(),out() from Entity       

+----+-----+-----------------------+-------+-------+
|#   |rid  |location               |in     |out    |
+----+-----+-----------------------+-------+-------+
|0   |#13:0|OPoint{coordinates:[2]}|[]     |[#14:0]|
|1   |#13:1|OPoint{coordinates:[2]}|[]     |[]     |
|2   |#14:0|OPoint{coordinates:[2]}|[#13:0]|[]     |
+----+-----+-----------------------+-------+-------+

3 item(s) found. Query executed in 0.006 sec(s).

So, everything ok.
But, when I query in the pyorient I got this:

d = c.client.command('select location,in() as in,out() as out from Entity')
>>> for i in d:
...     print(i.oRecordData)
... 
{'location': {'o_class': 'OPoint', '[],out': [<pyorient.otypes.OrientRecordLink object at 0x107bd3a58>], 'coordinates': '[-22.8934087d,-47.0885695d]),in'}}
{'location': {'o_class': 'OPoint', '[],out': [], 'coordinates': '[-22.999385d,-47.108123d]),in'}}
{'location': {'[#13': 0, 'o_class': 'OPoint', '],out': [], 'coordinates': '[-15.784493d,-47.870311d]),in'}}
>>> 

Take a look at out, it came inside of location field.
Am I doing something wrong or is it a bug?
Thanks in advance
Regards
André

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant