{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/5630","repository_url":"https://api.github.com/repos/influxdata/influxdb","labels_url":"https://api.github.com/repos/influxdata/influxdb/issues/5630/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/5630/comments","events_url":"https://api.github.com/repos/influxdata/influxdb/issues/5630/events","html_url":"https://github.com/influxdata/influxdb/issues/5630","id":132973052,"number":5630,"title":"[0.11.0] (master) panic when surrounding the select statement arguments in brackets","user":{"login":"seiflotfy","id":117837,"avatar_url":"https://avatars.githubusercontent.com/u/117837?v=3","gravatar_id":"","url":"https://api.github.com/users/seiflotfy","html_url":"https://github.com/seiflotfy","followers_url":"https://api.github.com/users/seiflotfy/followers","following_url":"https://api.github.com/users/seiflotfy/following{/other_user}","gists_url":"https://api.github.com/users/seiflotfy/gists{/gist_id}","starred_url":"https://api.github.com/users/seiflotfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seiflotfy/subscriptions","organizations_url":"https://api.github.com/users/seiflotfy/orgs","repos_url":"https://api.github.com/users/seiflotfy/repos","events_url":"https://api.github.com/users/seiflotfy/events{/privacy}","received_events_url":"https://api.github.com/users/seiflotfy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-11T13:27:47Z","updated_at":"2016-02-11T20:12:57Z","closed_at":null,"body":"A simple\r\n```sql\r\nSELECT (mean(value)/1) from cpu\r\n```\r\nor \r\n```sql\r\nSELECT (derivative(value, 1m)) FROM cpu\r\n```\r\n yields a panic:\r\n```\r\n[query] 2016/02/11 07:27:04 SELECT (mean(value) / 1.000) FROM stress.\"default\".cpu\r\npanic: invalid expression type: *influxql.ParenExpr\r\n\r\ngoroutine 105 [running]:\r\ngithub.com/influxdata/influxdb/influxql.buildExprIterator(0x37ca820, 0xc825c817e0, 0x37cac08, 0xc826908740, 0x37ca820, 0xc825c817e0, 0xd24908, 0x0, 0x0, 0xc825c81c40, ...)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/influxql/select.go:362 +0x36dc\r\ngithub.com/influxdata/influxdb/influxql.buildFieldIterators.func1(0xc825c0f9a8, 0x1, 0x1, 0x37cac08, 0xc826908740, 0xc821fe74e8, 0xc825c81c90, 0x1, 0x1, 0x0, ...)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/influxql/select.go:140 +0x548\r\ngithub.com/influxdata/influxdb/influxql.buildFieldIterators(0xc825c0f9a8, 0x1, 0x1, 0x37cac08, 0xc826908740, 0x0, 0x0, 0xd24908, 0x0, 0x0, ...)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/influxql/select.go:127 +0xf8\r\ngithub.com/influxdata/influxdb/influxql.Select(0xc8222c2750, 0x37cac08, 0xc826908740, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/influxql/select.go:67 +0xb9c\r\ngithub.com/influxdata/influxdb/tsdb.(*QueryExecutor).PlanSelect(0xc820132500, 0xc8222c2750, 0x2710, 0x0, 0x0, 0x0, 0x0)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/tsdb/query_executor.go:275 +0x724\r\ngithub.com/influxdata/influxdb/tsdb.(*QueryExecutor).planStatement(0xc820132500, 0x37caa58, 0xc8222c2750, 0xc8202e1e0e, 0x6, 0x2710, 0x0, 0x0, 0x0, 0x0)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/tsdb/query_executor.go:524 +0x177\r\ngithub.com/influxdata/influxdb/tsdb.(*QueryExecutor).executeStatement(0xc820132500, 0x0, 0x37caa58, 0xc8222c2750, 0xc8202e1e0e, 0x6, 0xc820070120, 0x2710, 0xc8202e1ec0, 0x0, ...)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/tsdb/query_executor.go:648 +0x86\r\ngithub.com/influxdata/influxdb/tsdb.(*QueryExecutor).ExecuteQuery.func1(0xc820070120, 0xc8269084c0, 0xc8202e1e0e, 0x6, 0xc820132500, 0x2710, 0xc8202e1ec0)\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/tsdb/query_executor.go:172 +0x97f\r\ncreated by github.com/influxdata/influxdb/tsdb.(*QueryExecutor).ExecuteQuery\r\n\t/Users/seif/Projects/go/src/github.com/influxdata/influxdb/tsdb/query_executor.go:227 +0xa8\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/comments/183045173","html_url":"https://github.com/influxdata/influxdb/issues/5630#issuecomment-183045173","issue_url":"https://api.github.com/repos/influxdata/influxdb/issues/5630","id":183045173,"user":{"login":"jwilder","id":219935,"avatar_url":"https://avatars.githubusercontent.com/u/219935?v=3","gravatar_id":"","url":"https://api.github.com/users/jwilder","html_url":"https://github.com/jwilder","followers_url":"https://api.github.com/users/jwilder/followers","following_url":"https://api.github.com/users/jwilder/following{/other_user}","gists_url":"https://api.github.com/users/jwilder/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilder/subscriptions","organizations_url":"https://api.github.com/users/jwilder/orgs","repos_url":"https://api.github.com/users/jwilder/repos","events_url":"https://api.github.com/users/jwilder/events{/privacy}","received_events_url":"https://api.github.com/users/jwilder/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T20:12:57Z","updated_at":"2016-02-11T20:12:57Z","body":"@seiflotfy I don't understand your question.  This issues seems to be a query parsing/planning bug.  Not a TSM block checksum problem."}}