{"action":"created","comment":{"url":"https://api.github.com/repos/implydata/plywood/pulls/comments/66898900","id":66898900,"diff_hunk":"@@ -0,0 +1,40 @@\n+module Plywood {\n+  export class LengthAction extends Action {\n+    static fromJS(parameters: ActionJS): LengthAction {\n+      return new LengthAction(Action.jsToValue(parameters));\n+    }\n+\n+    constructor(parameters: ActionValue) {\n+      super(parameters, dummyObject);\n+      this._ensureAction(\"length\");\n+      this._checkNoExpression();\n+    }\n+\n+    public getOutputType(inputType: PlyType): PlyType {\n+      this._checkInputTypes(inputType, 'STRING');\n+      return 'NUMBER';\n+    }\n+\n+    public _fillRefSubstitutions(typeContext: DatasetFullType, inputType: FullType): FullType {\n+      return inputType;\n+    }\n+\n+    protected _getFnHelper(inputFn: ComputeFn): ComputeFn {\n+      return (d: Datum, c: Datum) => {\n+        var inV = inputFn(d, c);\n+        if (inV === null) return null;\n+        return inV.length;\n+      }\n+    }\n+    \n+    protected _getJSHelper(inputJS: string): string {\n+      return `${inputJS}.length`","path":"src/actions/lengthAction.ts","position":31,"original_position":31,"commit_id":"6bfb4f0b8c7c7104bbe4fb592bf2b1bcca3bc3a3","original_commit_id":"6bfb4f0b8c7c7104bbe4fb592bf2b1bcca3bc3a3","user":{"login":"vogievetsky","id":177816,"avatar_url":"https://avatars.githubusercontent.com/u/177816?v=3","gravatar_id":"","url":"https://api.github.com/users/vogievetsky","html_url":"https://github.com/vogievetsky","followers_url":"https://api.github.com/users/vogievetsky/followers","following_url":"https://api.github.com/users/vogievetsky/following{/other_user}","gists_url":"https://api.github.com/users/vogievetsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vogievetsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogievetsky/subscriptions","organizations_url":"https://api.github.com/users/vogievetsky/orgs","repos_url":"https://api.github.com/users/vogievetsky/repos","events_url":"https://api.github.com/users/vogievetsky/events{/privacy}","received_events_url":"https://api.github.com/users/vogievetsky/received_events","type":"User","site_admin":false},"body":"this won't work well with null","created_at":"2016-06-14T01:57:19Z","updated_at":"2016-06-14T01:57:19Z","html_url":"https://github.com/implydata/plywood/pull/111#discussion_r66898900","pull_request_url":"https://api.github.com/repos/implydata/plywood/pulls/111","_links":{"self":{"href":"https://api.github.com/repos/implydata/plywood/pulls/comments/66898900"},"html":{"href":"https://github.com/implydata/plywood/pull/111#discussion_r66898900"},"pull_request":{"href":"https://api.github.com/repos/implydata/plywood/pulls/111"}}},"pull_request":{"url":"https://api.github.com/repos/implydata/plywood/pulls/111","id":73607271,"html_url":"https://github.com/implydata/plywood/pull/111","diff_url":"https://github.com/implydata/plywood/pull/111.diff","patch_url":"https://github.com/implydata/plywood/pull/111.patch","issue_url":"https://api.github.com/repos/implydata/plywood/issues/111","number":111,"state":"open","locked":false,"title":"length action","user":{"login":"evasomething","id":4262235,"avatar_url":"https://avatars.githubusercontent.com/u/4262235?v=3","gravatar_id":"","url":"https://api.github.com/users/evasomething","html_url":"https://github.com/evasomething","followers_url":"https://api.github.com/users/evasomething/followers","following_url":"https://api.github.com/users/evasomething/following{/other_user}","gists_url":"https://api.github.com/users/evasomething/gists{/gist_id}","starred_url":"https://api.github.com/users/evasomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evasomething/subscriptions","organizations_url":"https://api.github.com/users/evasomething/orgs","repos_url":"https://api.github.com/users/evasomething/repos","events_url":"https://api.github.com/users/evasomething/events{/privacy}","received_events_url":"https://api.github.com/users/evasomething/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-13T16:47:21Z","updated_at":"2016-06-14T01:57:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c724213220f29e4763ac6d63272cbd1efe13971e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/implydata/plywood/pulls/111/commits","review_comments_url":"https://api.github.com/repos/implydata/plywood/pulls/111/comments","review_comment_url":"https://api.github.com/repos/implydata/plywood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/implydata/plywood/issues/111/comments","statuses_url":"https://api.github.com/repos/implydata/plywood/statuses/6bfb4f0b8c7c7104bbe4fb592bf2b1bcca3bc3a3","head":{"label":"implydata:size-action","ref":"size-action","sha":"6bfb4f0b8c7c7104bbe4fb592bf2b1bcca3bc3a3","user":{"login":"implydata","id":11660206,"avatar_url":"https://avatars.githubusercontent.com/u/11660206?v=3","gravatar_id":"","url":"https://api.github.com/users/implydata","html_url":"https://github.com/implydata","followers_url":"https://api.github.com/users/implydata/followers","following_url":"https://api.github.com/users/implydata/following{/other_user}","gists_url":"https://api.github.com/users/implydata/gists{/gist_id}","starred_url":"https://api.github.com/users/implydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/implydata/subscriptions","organizations_url":"https://api.github.com/users/implydata/orgs","repos_url":"https://api.github.com/users/implydata/repos","events_url":"https://api.github.com/users/implydata/events{/privacy}","received_events_url":"https://api.github.com/users/implydata/received_events","type":"Organization","site_admin":false},"repo":{"id":39599175,"name":"plywood","full_name":"implydata/plywood","owner":{"login":"implydata","id":11660206,"avatar_url":"https://avatars.githubusercontent.com/u/11660206?v=3","gravatar_id":"","url":"https://api.github.com/users/implydata","html_url":"https://github.com/implydata","followers_url":"https://api.github.com/users/implydata/followers","following_url":"https://api.github.com/users/implydata/following{/other_user}","gists_url":"https://api.github.com/users/implydata/gists{/gist_id}","starred_url":"https://api.github.com/users/implydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/implydata/subscriptions","organizations_url":"https://api.github.com/users/implydata/orgs","repos_url":"https://api.github.com/users/implydata/repos","events_url":"https://api.github.com/users/implydata/events{/privacy}","received_events_url":"https://api.github.com/users/implydata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/implydata/plywood","description":"A toolkit for querying and interacting with Big Data","fork":false,"url":"https://api.github.com/repos/implydata/plywood","forks_url":"https://api.github.com/repos/implydata/plywood/forks","keys_url":"https://api.github.com/repos/implydata/plywood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/implydata/plywood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/implydata/plywood/teams","hooks_url":"https://api.github.com/repos/implydata/plywood/hooks","issue_events_url":"https://api.github.com/repos/implydata/plywood/issues/events{/number}","events_url":"https://api.github.com/repos/implydata/plywood/events","assignees_url":"https://api.github.com/repos/implydata/plywood/assignees{/user}","branches_url":"https://api.github.com/repos/implydata/plywood/branches{/branch}","tags_url":"https://api.github.com/repos/implydata/plywood/tags","blobs_url":"https://api.github.com/repos/implydata/plywood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/implydata/plywood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/implydata/plywood/git/refs{/sha}","trees_url":"https://api.github.com/repos/implydata/plywood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/implydata/plywood/statuses/{sha}","languages_url":"https://api.github.com/repos/implydata/plywood/languages","stargazers_url":"https://api.github.com/repos/implydata/plywood/stargazers","contributors_url":"https://api.github.com/repos/implydata/plywood/contributors","subscribers_url":"https://api.github.com/repos/implydata/plywood/subscribers","subscription_url":"https://api.github.com/repos/implydata/plywood/subscription","commits_url":"https://api.github.com/repos/implydata/plywood/commits{/sha}","git_commits_url":"https://api.github.com/repos/implydata/plywood/git/commits{/sha}","comments_url":"https://api.github.com/repos/implydata/plywood/comments{/number}","issue_comment_url":"https://api.github.com/repos/implydata/plywood/issues/comments{/number}","contents_url":"https://api.github.com/repos/implydata/plywood/contents/{+path}","compare_url":"https://api.github.com/repos/implydata/plywood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/implydata/plywood/merges","archive_url":"https://api.github.com/repos/implydata/plywood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/implydata/plywood/downloads","issues_url":"https://api.github.com/repos/implydata/plywood/issues{/number}","pulls_url":"https://api.github.com/repos/implydata/plywood/pulls{/number}","milestones_url":"https://api.github.com/repos/implydata/plywood/milestones{/number}","notifications_url":"https://api.github.com/repos/implydata/plywood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/implydata/plywood/labels{/name}","releases_url":"https://api.github.com/repos/implydata/plywood/releases{/id}","deployments_url":"https://api.github.com/repos/implydata/plywood/deployments","created_at":"2015-07-23T23:19:10Z","updated_at":"2016-06-03T16:13:40Z","pushed_at":"2016-06-14T01:14:17Z","git_url":"git://github.com/implydata/plywood.git","ssh_url":"git@github.com:implydata/plywood.git","clone_url":"https://github.com/implydata/plywood.git","svn_url":"https://github.com/implydata/plywood","homepage":"http://plywood.imply.io","size":59268,"stargazers_count":145,"watchers_count":145,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":145,"default_branch":"master"}},"base":{"label":"implydata:master","ref":"master","sha":"bc3ea384351636ad20d47bf339a4e83da95e6add","user":{"login":"implydata","id":11660206,"avatar_url":"https://avatars.githubusercontent.com/u/11660206?v=3","gravatar_id":"","url":"https://api.github.com/users/implydata","html_url":"https://github.com/implydata","followers_url":"https://api.github.com/users/implydata/followers","following_url":"https://api.github.com/users/implydata/following{/other_user}","gists_url":"https://api.github.com/users/implydata/gists{/gist_id}","starred_url":"https://api.github.com/users/implydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/implydata/subscriptions","organizations_url":"https://api.github.com/users/implydata/orgs","repos_url":"https://api.github.com/users/implydata/repos","events_url":"https://api.github.com/users/implydata/events{/privacy}","received_events_url":"https://api.github.com/users/implydata/received_events","type":"Organization","site_admin":false},"repo":{"id":39599175,"name":"plywood","full_name":"implydata/plywood","owner":{"login":"implydata","id":11660206,"avatar_url":"https://avatars.githubusercontent.com/u/11660206?v=3","gravatar_id":"","url":"https://api.github.com/users/implydata","html_url":"https://github.com/implydata","followers_url":"https://api.github.com/users/implydata/followers","following_url":"https://api.github.com/users/implydata/following{/other_user}","gists_url":"https://api.github.com/users/implydata/gists{/gist_id}","starred_url":"https://api.github.com/users/implydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/implydata/subscriptions","organizations_url":"https://api.github.com/users/implydata/orgs","repos_url":"https://api.github.com/users/implydata/repos","events_url":"https://api.github.com/users/implydata/events{/privacy}","received_events_url":"https://api.github.com/users/implydata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/implydata/plywood","description":"A toolkit for querying and interacting with Big Data","fork":false,"url":"https://api.github.com/repos/implydata/plywood","forks_url":"https://api.github.com/repos/implydata/plywood/forks","keys_url":"https://api.github.com/repos/implydata/plywood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/implydata/plywood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/implydata/plywood/teams","hooks_url":"https://api.github.com/repos/implydata/plywood/hooks","issue_events_url":"https://api.github.com/repos/implydata/plywood/issues/events{/number}","events_url":"https://api.github.com/repos/implydata/plywood/events","assignees_url":"https://api.github.com/repos/implydata/plywood/assignees{/user}","branches_url":"https://api.github.com/repos/implydata/plywood/branches{/branch}","tags_url":"https://api.github.com/repos/implydata/plywood/tags","blobs_url":"https://api.github.com/repos/implydata/plywood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/implydata/plywood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/implydata/plywood/git/refs{/sha}","trees_url":"https://api.github.com/repos/implydata/plywood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/implydata/plywood/statuses/{sha}","languages_url":"https://api.github.com/repos/implydata/plywood/languages","stargazers_url":"https://api.github.com/repos/implydata/plywood/stargazers","contributors_url":"https://api.github.com/repos/implydata/plywood/contributors","subscribers_url":"https://api.github.com/repos/implydata/plywood/subscribers","subscription_url":"https://api.github.com/repos/implydata/plywood/subscription","commits_url":"https://api.github.com/repos/implydata/plywood/commits{/sha}","git_commits_url":"https://api.github.com/repos/implydata/plywood/git/commits{/sha}","comments_url":"https://api.github.com/repos/implydata/plywood/comments{/number}","issue_comment_url":"https://api.github.com/repos/implydata/plywood/issues/comments{/number}","contents_url":"https://api.github.com/repos/implydata/plywood/contents/{+path}","compare_url":"https://api.github.com/repos/implydata/plywood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/implydata/plywood/merges","archive_url":"https://api.github.com/repos/implydata/plywood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/implydata/plywood/downloads","issues_url":"https://api.github.com/repos/implydata/plywood/issues{/number}","pulls_url":"https://api.github.com/repos/implydata/plywood/pulls{/number}","milestones_url":"https://api.github.com/repos/implydata/plywood/milestones{/number}","notifications_url":"https://api.github.com/repos/implydata/plywood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/implydata/plywood/labels{/name}","releases_url":"https://api.github.com/repos/implydata/plywood/releases{/id}","deployments_url":"https://api.github.com/repos/implydata/plywood/deployments","created_at":"2015-07-23T23:19:10Z","updated_at":"2016-06-03T16:13:40Z","pushed_at":"2016-06-14T01:14:17Z","git_url":"git://github.com/implydata/plywood.git","ssh_url":"git@github.com:implydata/plywood.git","clone_url":"https://github.com/implydata/plywood.git","svn_url":"https://github.com/implydata/plywood","homepage":"http://plywood.imply.io","size":59268,"stargazers_count":145,"watchers_count":145,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":145,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/implydata/plywood/pulls/111"},"html":{"href":"https://github.com/implydata/plywood/pull/111"},"issue":{"href":"https://api.github.com/repos/implydata/plywood/issues/111"},"comments":{"href":"https://api.github.com/repos/implydata/plywood/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/implydata/plywood/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/implydata/plywood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/implydata/plywood/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/implydata/plywood/statuses/6bfb4f0b8c7c7104bbe4fb592bf2b1bcca3bc3a3"}}}}
{"actor":{"display_login":"vogievetsky"}}