{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6605","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6605/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6605/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6605/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6605","id":173069731,"number":6605,"title":"@rid values cannot be compared with !=, unlike all other scalar types","user":{"login":"obi1kenobi","id":2348618,"avatar_url":"https://avatars.githubusercontent.com/u/2348618?v=3","gravatar_id":"","url":"https://api.github.com/users/obi1kenobi","html_url":"https://github.com/obi1kenobi","followers_url":"https://api.github.com/users/obi1kenobi/followers","following_url":"https://api.github.com/users/obi1kenobi/following{/other_user}","gists_url":"https://api.github.com/users/obi1kenobi/gists{/gist_id}","starred_url":"https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obi1kenobi/subscriptions","organizations_url":"https://api.github.com/users/obi1kenobi/orgs","repos_url":"https://api.github.com/users/obi1kenobi/repos","events_url":"https://api.github.com/users/obi1kenobi/events{/privacy}","received_events_url":"https://api.github.com/users/obi1kenobi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"luigidellaquila","id":459289,"avatar_url":"https://avatars.githubusercontent.com/u/459289?v=3","gravatar_id":"","url":"https://api.github.com/users/luigidellaquila","html_url":"https://github.com/luigidellaquila","followers_url":"https://api.github.com/users/luigidellaquila/followers","following_url":"https://api.github.com/users/luigidellaquila/following{/other_user}","gists_url":"https://api.github.com/users/luigidellaquila/gists{/gist_id}","starred_url":"https://api.github.com/users/luigidellaquila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigidellaquila/subscriptions","organizations_url":"https://api.github.com/users/luigidellaquila/orgs","repos_url":"https://api.github.com/users/luigidellaquila/repos","events_url":"https://api.github.com/users/luigidellaquila/events{/privacy}","received_events_url":"https://api.github.com/users/luigidellaquila/received_events","type":"User","site_admin":false},"assignees":[{"login":"luigidellaquila","id":459289,"avatar_url":"https://avatars.githubusercontent.com/u/459289?v=3","gravatar_id":"","url":"https://api.github.com/users/luigidellaquila","html_url":"https://github.com/luigidellaquila","followers_url":"https://api.github.com/users/luigidellaquila/followers","following_url":"https://api.github.com/users/luigidellaquila/following{/other_user}","gists_url":"https://api.github.com/users/luigidellaquila/gists{/gist_id}","starred_url":"https://api.github.com/users/luigidellaquila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigidellaquila/subscriptions","organizations_url":"https://api.github.com/users/luigidellaquila/orgs","repos_url":"https://api.github.com/users/luigidellaquila/repos","events_url":"https://api.github.com/users/luigidellaquila/events{/privacy}","received_events_url":"https://api.github.com/users/luigidellaquila/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/88","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.2.x%20(next%20hotfix)","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/88/labels","id":1768027,"number":88,"title":"2.2.x (next hotfix)","description":"","creator":{"login":"robfrank","id":413587,"avatar_url":"https://avatars.githubusercontent.com/u/413587?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrank","html_url":"https://github.com/robfrank","followers_url":"https://api.github.com/users/robfrank/followers","following_url":"https://api.github.com/users/robfrank/following{/other_user}","gists_url":"https://api.github.com/users/robfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrank/subscriptions","organizations_url":"https://api.github.com/users/robfrank/orgs","repos_url":"https://api.github.com/users/robfrank/repos","events_url":"https://api.github.com/users/robfrank/events{/privacy}","received_events_url":"https://api.github.com/users/robfrank/received_events","type":"User","site_admin":false},"open_issues":167,"closed_issues":14,"state":"open","created_at":"2016-05-16T08:28:14Z","updated_at":"2016-09-26T06:35:03Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-24T22:08:05Z","updated_at":"2016-09-26T06:41:33Z","closed_at":null,"body":"## OrientDB Version, operating system, or hardware.\r\n- v2.0 SNAPSHOT[ ] - .18[ ] .17[ ] .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]\r\n- v2.1 SNAPSHOT[ ] - .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]\r\n- v2.2 SNAPSHOT[ ] - .7 [x] .rc1[ ] .beta2[ ] .beta1[ ]\r\n\r\n## Operating System\r\n- [x] Linux\r\n- [x] MacOSX\r\n- [ ] Windows\r\n- [ ] Other Unix\r\n- [ ] Other, name? \r\n\r\n## Expected behavior and actual behavior\r\n\r\nExpected: @rid values can be checked for inequality with both `!=` and `<>`, similarly to other values like strings and numbers.\r\n\r\nActual: @rid values can only be checked for inequality with `<>`. Trying to use `!=` raises the following error:\r\n```\r\njava.lang.ClassCastException: com.orientechnologies.orient.code.id.ORecordId cannot be cast to java.lang.Boolean\r\n```\r\n\r\nWorse still, in combination with #6604 this means that entire columns from the output are silently dropped for no obvious reason, as #6604 will swallow the raised error in the `eval` statement.\r\n\r\n## Steps to reproduce the problem\r\n\r\nFollow the setup from #6604, then run:\r\n```\r\nselect @rid, name, if(eval(\"@rid != @rid\"), \"match\", \"no match\") as m from V1 where @rid <> #12:0\r\n```\r\n\r\nObserve the error I listed above. Then, remove the `WHERE` clause, and observe that the returned output is missing the `m` column, as in #6604.\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/249490891","html_url":"https://github.com/orientechnologies/orientdb/issues/6605#issuecomment-249490891","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6605","id":249490891,"user":{"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},"created_at":"2016-09-26T06:41:33Z","updated_at":"2016-09-26T06:41:33Z","body":"@luigidellaquila it seems an error on the old parser."}}
{"actor":{"display_login":"lvca"}}