{"action":"created","comment":{"url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/comments/231240161","pull_request_review_id":172167474,"id":231240161,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTI0MDE2MQ==","diff_hunk":"@@ -0,0 +1,91 @@\n+---\n+title: Types\n+description:\n+menu:\n+  flux_0_7:\n+    parent: Flux language\n+    name: Types\n+    weight: 110\n+---\n+\n+A _type_ defines the set of values and operations on those values.\n+Types are never explicitly declared as part of the syntax.\n+Types are always inferred from the usage of the value.\n+\n+> To be implemented: [IMPL#249](https://github.com/influxdata/platform/issues/249) Specify type inference rules.\n+\n+## Boolean types\n+\n+A _boolean type_ represents a truth value, corresponding to the preassigned variables `true` and `false`.\n+The boolean type name is `bool`.\n+\n+## Numeric types\n+\n+A _numeric type_ represents sets of integer or floating-point values.\n+\n+The following numeric types exist:\n+\n+```\n+uint    the set of all unsigned 64-bit integers\n+int     the set of all signed 64-bit integers\n+float   the set of all IEEE-754 64-bit floating-point numbers\n+```\n+\n+## Time types\n+\n+A _time type_ represents a single point in time with nanosecond precision.\n+The time type name is `time`.\n+\n+## Duration types\n+\n+A _duration type_ represents a length of time with nanosecond precision.\n+The duration type name is `duration`.\n+\n+Durations can be added to times to produce a new time.\n+\n+**Examples**\n+\n+```\n+2018-07-01T00:00:00Z + 1mo // 2018-08-01T00:00:00Z\n+2018-07-01T00:00:00Z + 2y  // 2020-07-01T00:00:00Z\n+2018-07-01T00:00:00Z + 5h  // 2018-07-01T05:00:00Z\n+```\n+\n+## String types\n+\n+A _string type_ represents a possibly empty sequence of characters.\n+Strings are immutable: once created they cannot be modified.\n+The string type name is `string`.\n+\n+The length of a string is its size in bytes, not the number of characters, since a single character may be multiple bytes.\n+\n+## Regular expression types\n+\n+A _regular expression type_ represents the set of all patterns for regular expressions.\n+The regular expression type name is `regexp`.\n+\n+## Array types\n+\n+An _array type_ represents a sequence of values of any other type.\n+All values in the array must be of the same type.\n+The length of an array is the number of elements in the array.\n+\n+## Object types\n+\n+An _object type_ represents a set of unordered key and value pairs.\n+The key must always be a string.\n+The value may be any other type, and need not be the same as other values within the object.\n+\n+## Function types\n+\n+A _function type_ represents a set of all functions with the same argument and result types.\n+\n+\n+> To be implemented: [IMPL#249](https://github.com/influxdata/platform/issues/249) Specify type inference rules.\n+\n+## Generator types\n+\n+A _generator type_ represents a value that produces an unknown number of other values.\n+The generated values may be of any other type but must all be the same type.\n+\n+To be implemented: [IMPL#658](https://github.com/influxdata/platform/query/issues/658) Implement Generators types.","path":"content/flux/v0.7/language/types.md","position":91,"original_position":91,"commit_id":"6a8c80a7f45f1598f323c004d599a25e58035ac6","original_commit_id":"f8dbea6b589689dbd24846a1809ebfb33396a5f8","user":{"login":"stevebang","id":8887198,"node_id":"MDQ6VXNlcjg4ODcxOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/8887198?v=4","gravatar_id":"","url":"https://api.github.com/users/stevebang","html_url":"https://github.com/stevebang","followers_url":"https://api.github.com/users/stevebang/followers","following_url":"https://api.github.com/users/stevebang/following{/other_user}","gists_url":"https://api.github.com/users/stevebang/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebang/subscriptions","organizations_url":"https://api.github.com/users/stevebang/orgs","repos_url":"https://api.github.com/users/stevebang/repos","events_url":"https://api.github.com/users/stevebang/events{/privacy}","received_events_url":"https://api.github.com/users/stevebang/received_events","type":"User","site_admin":false},"body":"See earlier comment.","created_at":"2018-11-06T18:32:46Z","updated_at":"2018-11-06T18:32:46Z","html_url":"https://github.com/influxdata/docs.influxdata.com/pull/1944#discussion_r231240161","pull_request_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/comments/231240161"},"html":{"href":"https://github.com/influxdata/docs.influxdata.com/pull/1944#discussion_r231240161"},"pull_request":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944"}},"in_reply_to_id":231136205},"pull_request":{"url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944","id":228439778,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NDM5Nzc4","html_url":"https://github.com/influxdata/docs.influxdata.com/pull/1944","diff_url":"https://github.com/influxdata/docs.influxdata.com/pull/1944.diff","patch_url":"https://github.com/influxdata/docs.influxdata.com/pull/1944.patch","issue_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/1944","number":1944,"state":"open","locked":false,"title":"Flux language reference","user":{"login":"stevebang","id":8887198,"node_id":"MDQ6VXNlcjg4ODcxOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/8887198?v=4","gravatar_id":"","url":"https://api.github.com/users/stevebang","html_url":"https://github.com/stevebang","followers_url":"https://api.github.com/users/stevebang/followers","following_url":"https://api.github.com/users/stevebang/following{/other_user}","gists_url":"https://api.github.com/users/stevebang/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebang/subscriptions","organizations_url":"https://api.github.com/users/stevebang/orgs","repos_url":"https://api.github.com/users/stevebang/repos","events_url":"https://api.github.com/users/stevebang/events{/privacy}","received_events_url":"https://api.github.com/users/stevebang/received_events","type":"User","site_admin":false},"body":"Add all of language reference content other than functions.","created_at":"2018-11-05T17:58:47Z","updated_at":"2018-11-06T18:32:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac584fbf1774684a0d16c2c2bb0f0757e4691e11","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944/commits","review_comments_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944/comments","review_comment_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/1944/comments","statuses_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/statuses/6a8c80a7f45f1598f323c004d599a25e58035ac6","head":{"label":"influxdata:flux-language-reference","ref":"flux-language-reference","sha":"6a8c80a7f45f1598f323c004d599a25e58035ac6","user":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":42206749,"node_id":"MDEwOlJlcG9zaXRvcnk0MjIwNjc0OQ==","name":"docs.influxdata.com","full_name":"influxdata/docs.influxdata.com","private":false,"owner":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/influxdata/docs.influxdata.com","description":"New docs for InfluxData","fork":false,"url":"https://api.github.com/repos/influxdata/docs.influxdata.com","forks_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/forks","keys_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/teams","hooks_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/hooks","issue_events_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/events","assignees_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/tags","blobs_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/languages","stargazers_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/stargazers","contributors_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/contributors","subscribers_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/subscribers","subscription_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/subscription","commits_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/merges","archive_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/downloads","issues_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/deployments","created_at":"2015-09-09T21:50:49Z","updated_at":"2018-11-02T01:56:02Z","pushed_at":"2018-11-06T18:14:06Z","git_url":"git://github.com/influxdata/docs.influxdata.com.git","ssh_url":"git@github.com:influxdata/docs.influxdata.com.git","clone_url":"https://github.com/influxdata/docs.influxdata.com.git","svn_url":"https://github.com/influxdata/docs.influxdata.com","homepage":"https://docs.influxdata.com/","size":125889,"stargazers_count":115,"watchers_count":115,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":219,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":219,"open_issues":130,"watchers":115,"default_branch":"master"}},"base":{"label":"influxdata:flux-0.7","ref":"flux-0.7","sha":"4146ed13329886775f483b1ae28e136f1e9be1e4","user":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":42206749,"node_id":"MDEwOlJlcG9zaXRvcnk0MjIwNjc0OQ==","name":"docs.influxdata.com","full_name":"influxdata/docs.influxdata.com","private":false,"owner":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/influxdata/docs.influxdata.com","description":"New docs for InfluxData","fork":false,"url":"https://api.github.com/repos/influxdata/docs.influxdata.com","forks_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/forks","keys_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/teams","hooks_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/hooks","issue_events_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/events","assignees_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/tags","blobs_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/languages","stargazers_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/stargazers","contributors_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/contributors","subscribers_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/subscribers","subscription_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/subscription","commits_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/merges","archive_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/downloads","issues_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/docs.influxdata.com/deployments","created_at":"2015-09-09T21:50:49Z","updated_at":"2018-11-02T01:56:02Z","pushed_at":"2018-11-06T18:14:06Z","git_url":"git://github.com/influxdata/docs.influxdata.com.git","ssh_url":"git@github.com:influxdata/docs.influxdata.com.git","clone_url":"https://github.com/influxdata/docs.influxdata.com.git","svn_url":"https://github.com/influxdata/docs.influxdata.com","homepage":"https://docs.influxdata.com/","size":125889,"stargazers_count":115,"watchers_count":115,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":219,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":219,"open_issues":130,"watchers":115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944"},"html":{"href":"https://github.com/influxdata/docs.influxdata.com/pull/1944"},"issue":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/1944"},"comments":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/issues/1944/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/pulls/1944/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/docs.influxdata.com/statuses/6a8c80a7f45f1598f323c004d599a25e58035ac6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stevebang"}}