{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/2520","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/2520/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/2520/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/2520/events","html_url":"https://github.com/influxdb/influxdb/issues/2520","id":74341405,"number":2520,"title":"select last value crashes nodes","user":{"login":"thecodeassassin","id":939775,"avatar_url":"https://avatars.githubusercontent.com/u/939775?v=3","gravatar_id":"","url":"https://api.github.com/users/thecodeassassin","html_url":"https://github.com/thecodeassassin","followers_url":"https://api.github.com/users/thecodeassassin/followers","following_url":"https://api.github.com/users/thecodeassassin/following{/other_user}","gists_url":"https://api.github.com/users/thecodeassassin/gists{/gist_id}","starred_url":"https://api.github.com/users/thecodeassassin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecodeassassin/subscriptions","organizations_url":"https://api.github.com/users/thecodeassassin/orgs","repos_url":"https://api.github.com/users/thecodeassassin/repos","events_url":"https://api.github.com/users/thecodeassassin/events{/privacy}","received_events_url":"https://api.github.com/users/thecodeassassin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T12:06:26Z","updated_at":"2015-05-08T14:21:57Z","closed_at":null,"body":"hey All,\r\n\r\nwhen i run the following query on a dataset:\r\n```\r\nselect last(value) from test1\r\n```\r\n\r\nIt is caused by a panic:\r\n\r\n```\r\n[http] 2015/05/08 13:47:42 10.11.104.16 - - [08/May/2015:13:47:42 +0200] GET /query?db=test_zzz&q=SELECT+count%28value%29+FROM+test1+where++time+%3E%3D+%272015-01-01T12%3A00%3A00Z%27+and+time+%3C+%272015-01-02T00%3A00%3A00Z%27+group+by+time%281h%29&time_precision=s&u=root&p=root HTTP/1.1 200 405 - - 095c428a-f578-11e4-8261-000000000000 3.798177ms\r\npanic: interface conversion: interface is *influxql.firstLastMapOutput, not influxql.firstLastMapOutput\r\n```\r\n\r\nI think the problem is located somewhere here: https://github.com/influxdb/influxdb/blob/710576e825733d7ba8403464edab127c6da92a5f/influxql/functions.go\r\n\r\nThis problem occurs on a clustered setup"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/100245861","html_url":"https://github.com/influxdb/influxdb/issues/2520#issuecomment-100245861","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/2520","id":100245861,"user":{"login":"neonstalwart","id":84763,"avatar_url":"https://avatars.githubusercontent.com/u/84763?v=3","gravatar_id":"","url":"https://api.github.com/users/neonstalwart","html_url":"https://github.com/neonstalwart","followers_url":"https://api.github.com/users/neonstalwart/followers","following_url":"https://api.github.com/users/neonstalwart/following{/other_user}","gists_url":"https://api.github.com/users/neonstalwart/gists{/gist_id}","starred_url":"https://api.github.com/users/neonstalwart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonstalwart/subscriptions","organizations_url":"https://api.github.com/users/neonstalwart/orgs","repos_url":"https://api.github.com/users/neonstalwart/repos","events_url":"https://api.github.com/users/neonstalwart/events{/privacy}","received_events_url":"https://api.github.com/users/neonstalwart/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T14:21:57Z","updated_at":"2015-05-08T14:21:57Z","body":"i believe #2448 fixes this."}}