{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/6529","repository_url":"https://api.github.com/repos/influxdata/influxdb","labels_url":"https://api.github.com/repos/influxdata/influxdb/issues/6529/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/6529/comments","events_url":"https://api.github.com/repos/influxdata/influxdb/issues/6529/events","html_url":"https://github.com/influxdata/influxdb/pull/6529","id":152461915,"number":6529,"title":"Support cast syntax for selecting a specific type","user":{"login":"jsternberg","id":1212129,"avatar_url":"https://avatars.githubusercontent.com/u/1212129?v=3","gravatar_id":"","url":"https://api.github.com/users/jsternberg","html_url":"https://github.com/jsternberg","followers_url":"https://api.github.com/users/jsternberg/followers","following_url":"https://api.github.com/users/jsternberg/following{/other_user}","gists_url":"https://api.github.com/users/jsternberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jsternberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsternberg/subscriptions","organizations_url":"https://api.github.com/users/jsternberg/orgs","repos_url":"https://api.github.com/users/jsternberg/repos","events_url":"https://api.github.com/users/jsternberg/events{/privacy}","received_events_url":"https://api.github.com/users/jsternberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdata/influxdb/labels/query%20language","name":"query language","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/influxdata/influxdb/milestones/39","html_url":"https://github.com/influxdata/influxdb/milestones/1.0.0","labels_url":"https://api.github.com/repos/influxdata/influxdb/milestones/39/labels","id":1101423,"number":39,"title":"1.0.0","description":"","creator":{"login":"toddboom","id":53132,"avatar_url":"https://avatars.githubusercontent.com/u/53132?v=3","gravatar_id":"","url":"https://api.github.com/users/toddboom","html_url":"https://github.com/toddboom","followers_url":"https://api.github.com/users/toddboom/followers","following_url":"https://api.github.com/users/toddboom/following{/other_user}","gists_url":"https://api.github.com/users/toddboom/gists{/gist_id}","starred_url":"https://api.github.com/users/toddboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddboom/subscriptions","organizations_url":"https://api.github.com/users/toddboom/orgs","repos_url":"https://api.github.com/users/toddboom/repos","events_url":"https://api.github.com/users/toddboom/events{/privacy}","received_events_url":"https://api.github.com/users/toddboom/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":25,"state":"open","created_at":"2015-05-08T06:30:59Z","updated_at":"2016-05-16T15:46:24Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-05-01T23:18:20Z","updated_at":"2016-05-16T16:07:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdata/influxdb/pulls/6529","html_url":"https://github.com/influxdata/influxdb/pull/6529","diff_url":"https://github.com/influxdata/influxdb/pull/6529.diff","patch_url":"https://github.com/influxdata/influxdb/pull/6529.patch"},"body":"Casting syntax is done with the PostgreSQL syntax `field1::float` to\r\nspecify which type should be used when selecting a field. You can also\r\ndo `tag1::tag` to specify that a tag should be selected.\r\n\r\nThis makes it possible to select a tag when a field key and a tag key\r\nconflict with each other in a measurement. It also means it's possible\r\nto choose a field with a specific type if multiple shards disagree. If\r\nno types are given, the same ordering for how a type is chosen is used\r\nto determine which type to return.\r\n\r\nThe FieldDimensions method has been updated to return the data type for\r\nthe fields that get returned. The SeriesKeys function has also been\r\nremoved since it is no longer needed. SeriesKeys was originally used for\r\nthe fill iterator, but then expanded to be used by auxiliary iterators\r\nfor determining the channel iterator types. The fill iterator doesn't\r\nneed it anymore and the auxiliary types are better served by\r\nFieldDimensions implementing that functionality, so SeriesKeys is no\r\nlonger needed.\r\n\r\nFixes #6519."},"comment":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/comments/219466897","html_url":"https://github.com/influxdata/influxdb/pull/6529#issuecomment-219466897","issue_url":"https://api.github.com/repos/influxdata/influxdb/issues/6529","id":219466897,"user":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T16:07:15Z","updated_at":"2016-05-16T16:07:15Z","body":"One minor nit but otherwise 🚢 "}}