{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6173","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6173/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6173/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6173/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6173","id":155934202,"number":6173,"title":"Edge's in and out properties not set properly. ","user":{"login":"amyth","id":2034540,"avatar_url":"https://avatars.githubusercontent.com/u/2034540?v=3","gravatar_id":"","url":"https://api.github.com/users/amyth","html_url":"https://github.com/amyth","followers_url":"https://api.github.com/users/amyth/followers","following_url":"https://api.github.com/users/amyth/following{/other_user}","gists_url":"https://api.github.com/users/amyth/gists{/gist_id}","starred_url":"https://api.github.com/users/amyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyth/subscriptions","organizations_url":"https://api.github.com/users/amyth/orgs","repos_url":"https://api.github.com/users/amyth/repos","events_url":"https://api.github.com/users/amyth/events{/privacy}","received_events_url":"https://api.github.com/users/amyth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2016-05-20T10:33:56Z","updated_at":"2016-05-23T08:58:56Z","closed_at":"2016-05-22T00:33:38Z","body":"## Expected behavior and actual behavior\r\nI am trying to create an edge `KNOWS` between `Person` and `CustomUser` vertexes. CustomUser vertex has `Person` as its superclass. I am trying to do this using a batch script as follows.\r\n```\r\norientdb {db=konnect}> begin\r\norientdb {db=konnect}> let person = select from person where uid = 100\r\norientdb {db=konnect}> let su = select from customuser where uid = 9199853\r\norientdb {db=konnect}> let knows = update knows set in = $su.@rid, out=$person.@rid content {\"name\": \"Yolo\"} upsert return after @this where in=$su.@rid and out=$person.@rid\r\norientdb {db=konnect}> return $knows\r\norientdb {db=konnect}> commit\r\n```\r\nIt seems like the `knows` edge is created but the `in` and `out` properties are not being set to `$person`'s and `$su`'s rids properly. Following is the result I see.\r\n\r\n```\r\n----+----------+------+----+----+----------+------------+------------+------+----\r\n#   |@RID      |@CLASS|in  |out |_allowRead|_allowUpdate|_allowDelete|_allow|name\r\n----+----------+------+----+----+----------+------------+------------+------+----\r\n0   |#23:122788|KNOWS |[1] |[1] |null      |null        |null        |null  |Yolo\r\n----+----------+------+----+----+----------+------------+------------+------+----\r\n```\r\n\r\n## Steps to reproduce the problem\r\n\r\n```\r\norientdb {db=konnect}> begin\r\norientdb {db=konnect}> let person = select from person where uid = 100\r\norientdb {db=konnect}> let su = select from customuser where uid = 9199853\r\norientdb {db=konnect}> let knows = update knows set in = $su.@rid, out=$person.@rid content {\"name\": \"Yolo\"} upsert return after @this where in=$su.@rid and out=$person.@rid\r\norientdb {db=konnect}> return $knows\r\norientdb {db=konnect}> commit\r\n```\r\n\r\n## Important Questions\r\n\r\nWhy does the result show in and out property values as `[1]`. What does `[1]` denote here ?\r\n\r\n### Runninng Mode\r\n- [x] Embedded, using PLOCAL access mode\r\n- [ ] Embedded, using MEMORY access mode\r\n- [ ] Remote\r\n\r\n### Misc\r\n- [ ] I have a distributed setup with multiple servers. How many? \r\n- [ ] I'm using the Enterprise Edition\r\n\r\n### OrientDB Version\r\n- [ ] v2.0.x - Please specify last number: \r\n- [x] v2.1.x - Please specify last number: \r\n- [ ] v2.2.x - Please specify last number: \r\n\r\n### Operating System\r\n- [ ] Linux\r\n- [x] MacOSX\r\n- [ ] Windows\r\n- [ ] Other Unix\r\n- [ ] Other, name? \r\n\r\n### Java Version\r\n- [ ] 6\r\n- [x] 7\r\n- [ ] 8\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/220924452","html_url":"https://github.com/orientechnologies/orientdb/issues/6173#issuecomment-220924452","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6173","id":220924452,"user":{"login":"amyth","id":2034540,"avatar_url":"https://avatars.githubusercontent.com/u/2034540?v=3","gravatar_id":"","url":"https://api.github.com/users/amyth","html_url":"https://github.com/amyth","followers_url":"https://api.github.com/users/amyth/followers","following_url":"https://api.github.com/users/amyth/following{/other_user}","gists_url":"https://api.github.com/users/amyth/gists{/gist_id}","starred_url":"https://api.github.com/users/amyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyth/subscriptions","organizations_url":"https://api.github.com/users/amyth/orgs","repos_url":"https://api.github.com/users/amyth/repos","events_url":"https://api.github.com/users/amyth/events{/privacy}","received_events_url":"https://api.github.com/users/amyth/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T08:58:56Z","updated_at":"2016-05-23T08:58:56Z","body":"Also, what if I want to create more than one edge in a transaction, how would I know which one of them threw an exception ?"}}
{"actor":{"display_login":"amyth"}}