{"action":"created","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1783","repository_url":"https://api.github.com/repos/Rdatatable/data.table","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1783/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1783/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1783/events","html_url":"https://github.com/Rdatatable/data.table/issues/1783","id":167911447,"number":1783,"title":"Internal Error when an ITime is used in an i-expression","user":{"login":"lbilli","id":12815378,"avatar_url":"https://avatars.githubusercontent.com/u/12815378?v=3","gravatar_id":"","url":"https://api.github.com/users/lbilli","html_url":"https://github.com/lbilli","followers_url":"https://api.github.com/users/lbilli/followers","following_url":"https://api.github.com/users/lbilli/following{/other_user}","gists_url":"https://api.github.com/users/lbilli/gists{/gist_id}","starred_url":"https://api.github.com/users/lbilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbilli/subscriptions","organizations_url":"https://api.github.com/users/lbilli/orgs","repos_url":"https://api.github.com/users/lbilli/repos","events_url":"https://api.github.com/users/lbilli/events{/privacy}","received_events_url":"https://api.github.com/users/lbilli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T17:32:58Z","updated_at":"2016-07-28T15:51:19Z","closed_at":null,"body":"The following code generates an error:\r\n\r\n    > library(data.table)\r\n    > it <- as.ITime(\"16:00\")\r\n    > DT <- data.table(x=it)\r\n\r\n    > DT[x == it]\r\n    Error in alloc.col(x) : \r\n        Internal error: length of names (0) is not length of dt (1)\r\n\r\nHowever, this works correctly:\r\n\r\n    > DT[x == unclass(it)]\r\n              x\r\n    1: 16:00:00\r\n\r\nVersions:\r\nR 3.3.1\r\ndata.table 1.9.6\r\n"},"comment":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/comments/235938013","html_url":"https://github.com/Rdatatable/data.table/issues/1783#issuecomment-235938013","issue_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1783","id":235938013,"user":{"login":"MichaelChirico","id":7606389,"avatar_url":"https://avatars.githubusercontent.com/u/7606389?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelChirico","html_url":"https://github.com/MichaelChirico","followers_url":"https://api.github.com/users/MichaelChirico/followers","following_url":"https://api.github.com/users/MichaelChirico/following{/other_user}","gists_url":"https://api.github.com/users/MichaelChirico/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelChirico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelChirico/subscriptions","organizations_url":"https://api.github.com/users/MichaelChirico/orgs","repos_url":"https://api.github.com/users/MichaelChirico/repos","events_url":"https://api.github.com/users/MichaelChirico/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelChirico/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T15:51:19Z","updated_at":"2016-07-28T15:51:19Z","body":"Working on this now; isolated the problem a bit more:\r\n\r\n    as.data.table(structure(57600L, class = \"ITime\"))\r\n\r\n> Error in `alloc.col(x)` : \r\n  Internal error: length of `names` (0) is not length of `dt` (1)"}}
{"actor":{"display_login":"MichaelChirico"}}