{"action":"created","comment":{"url":"https://api.github.com/repos/uwescience/raco/pulls/comments/45548510","id":45548510,"diff_hunk":"@@ -66,8 +116,19 @@ def typeof(self, scheme, state_scheme):\n         return types.DOUBLE_TYPE\n \n \n+class YEAR(UnaryFunction):","path":"raco/expression/function.py","position":99,"original_position":90,"commit_id":"57874b31eb252421669fe46d27a3eea9605d080b","original_commit_id":"50a1f6d23fcc0ff67abc7feca5a73b8a369ebb34","user":{"login":"bmyerz","id":1979690,"avatar_url":"https://avatars.githubusercontent.com/u/1979690?v=3","gravatar_id":"","url":"https://api.github.com/users/bmyerz","html_url":"https://github.com/bmyerz","followers_url":"https://api.github.com/users/bmyerz/followers","following_url":"https://api.github.com/users/bmyerz/following{/other_user}","gists_url":"https://api.github.com/users/bmyerz/gists{/gist_id}","starred_url":"https://api.github.com/users/bmyerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmyerz/subscriptions","organizations_url":"https://api.github.com/users/bmyerz/orgs","repos_url":"https://api.github.com/users/bmyerz/repos","events_url":"https://api.github.com/users/bmyerz/events{/privacy}","received_events_url":"https://api.github.com/users/bmyerz/received_events","type":"User","site_admin":false},"body":"It was a quick and dirty way to support YEAR, which was needed [in TPC-H queries](https://github.com/uwescience/tpch-radish/blob/7d8e8a8ef5808a6ceccc5d9c4e61b6df7d40f60d/templates/9.sql). I'll add at least the others that make sense.","created_at":"2015-11-21T17:29:54Z","updated_at":"2015-11-21T17:29:54Z","html_url":"https://github.com/uwescience/raco/pull/452#discussion_r45548510","pull_request_url":"https://api.github.com/repos/uwescience/raco/pulls/452","_links":{"self":{"href":"https://api.github.com/repos/uwescience/raco/pulls/comments/45548510"},"html":{"href":"https://github.com/uwescience/raco/pull/452#discussion_r45548510"},"pull_request":{"href":"https://api.github.com/repos/uwescience/raco/pulls/452"}}},"pull_request":{"url":"https://api.github.com/repos/uwescience/raco/pulls/452","id":39422025,"html_url":"https://github.com/uwescience/raco/pull/452","diff_url":"https://github.com/uwescience/raco/pull/452.diff","patch_url":"https://github.com/uwescience/raco/pull/452.patch","issue_url":"https://api.github.com/repos/uwescience/raco/issues/452","number":452,"state":"open","locked":false,"title":"Changes to run Radish on TPC-H","user":{"login":"bmyerz","id":1979690,"avatar_url":"https://avatars.githubusercontent.com/u/1979690?v=3","gravatar_id":"","url":"https://api.github.com/users/bmyerz","html_url":"https://github.com/bmyerz","followers_url":"https://api.github.com/users/bmyerz/followers","following_url":"https://api.github.com/users/bmyerz/following{/other_user}","gists_url":"https://api.github.com/users/bmyerz/gists{/gist_id}","starred_url":"https://api.github.com/users/bmyerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmyerz/subscriptions","organizations_url":"https://api.github.com/users/bmyerz/orgs","repos_url":"https://api.github.com/users/bmyerz/repos","events_url":"https://api.github.com/users/bmyerz/events{/privacy}","received_events_url":"https://api.github.com/users/bmyerz/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T22:04:27Z","updated_at":"2015-11-21T17:29:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5f708f2641f9bfb1474add8b9b0f095c043b324","assignee":{"login":"senderista","id":131425,"avatar_url":"https://avatars.githubusercontent.com/u/131425?v=3","gravatar_id":"","url":"https://api.github.com/users/senderista","html_url":"https://github.com/senderista","followers_url":"https://api.github.com/users/senderista/followers","following_url":"https://api.github.com/users/senderista/following{/other_user}","gists_url":"https://api.github.com/users/senderista/gists{/gist_id}","starred_url":"https://api.github.com/users/senderista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senderista/subscriptions","organizations_url":"https://api.github.com/users/senderista/orgs","repos_url":"https://api.github.com/users/senderista/repos","events_url":"https://api.github.com/users/senderista/events{/privacy}","received_events_url":"https://api.github.com/users/senderista/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/uwescience/raco/pulls/452/commits","review_comments_url":"https://api.github.com/repos/uwescience/raco/pulls/452/comments","review_comment_url":"https://api.github.com/repos/uwescience/raco/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uwescience/raco/issues/452/comments","statuses_url":"https://api.github.com/repos/uwescience/raco/statuses/57874b31eb252421669fe46d27a3eea9605d080b","head":{"label":"uwescience:bmyerz/tpc-h-fixes","ref":"bmyerz/tpc-h-fixes","sha":"57874b31eb252421669fe46d27a3eea9605d080b","user":{"login":"uwescience","id":2243113,"avatar_url":"https://avatars.githubusercontent.com/u/2243113?v=3","gravatar_id":"","url":"https://api.github.com/users/uwescience","html_url":"https://github.com/uwescience","followers_url":"https://api.github.com/users/uwescience/followers","following_url":"https://api.github.com/users/uwescience/following{/other_user}","gists_url":"https://api.github.com/users/uwescience/gists{/gist_id}","starred_url":"https://api.github.com/users/uwescience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwescience/subscriptions","organizations_url":"https://api.github.com/users/uwescience/orgs","repos_url":"https://api.github.com/users/uwescience/repos","events_url":"https://api.github.com/users/uwescience/events{/privacy}","received_events_url":"https://api.github.com/users/uwescience/received_events","type":"Organization","site_admin":false},"repo":{"id":6326372,"name":"raco","full_name":"uwescience/raco","owner":{"login":"uwescience","id":2243113,"avatar_url":"https://avatars.githubusercontent.com/u/2243113?v=3","gravatar_id":"","url":"https://api.github.com/users/uwescience","html_url":"https://github.com/uwescience","followers_url":"https://api.github.com/users/uwescience/followers","following_url":"https://api.github.com/users/uwescience/following{/other_user}","gists_url":"https://api.github.com/users/uwescience/gists{/gist_id}","starred_url":"https://api.github.com/users/uwescience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwescience/subscriptions","organizations_url":"https://api.github.com/users/uwescience/orgs","repos_url":"https://api.github.com/users/uwescience/repos","events_url":"https://api.github.com/users/uwescience/events{/privacy}","received_events_url":"https://api.github.com/users/uwescience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwescience/raco","description":"Compilation and rule-based optimization framework for datalog.  Includes an RA compiler.","fork":false,"url":"https://api.github.com/repos/uwescience/raco","forks_url":"https://api.github.com/repos/uwescience/raco/forks","keys_url":"https://api.github.com/repos/uwescience/raco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwescience/raco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwescience/raco/teams","hooks_url":"https://api.github.com/repos/uwescience/raco/hooks","issue_events_url":"https://api.github.com/repos/uwescience/raco/issues/events{/number}","events_url":"https://api.github.com/repos/uwescience/raco/events","assignees_url":"https://api.github.com/repos/uwescience/raco/assignees{/user}","branches_url":"https://api.github.com/repos/uwescience/raco/branches{/branch}","tags_url":"https://api.github.com/repos/uwescience/raco/tags","blobs_url":"https://api.github.com/repos/uwescience/raco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwescience/raco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwescience/raco/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwescience/raco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwescience/raco/statuses/{sha}","languages_url":"https://api.github.com/repos/uwescience/raco/languages","stargazers_url":"https://api.github.com/repos/uwescience/raco/stargazers","contributors_url":"https://api.github.com/repos/uwescience/raco/contributors","subscribers_url":"https://api.github.com/repos/uwescience/raco/subscribers","subscription_url":"https://api.github.com/repos/uwescience/raco/subscription","commits_url":"https://api.github.com/repos/uwescience/raco/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwescience/raco/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwescience/raco/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwescience/raco/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwescience/raco/contents/{+path}","compare_url":"https://api.github.com/repos/uwescience/raco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwescience/raco/merges","archive_url":"https://api.github.com/repos/uwescience/raco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwescience/raco/downloads","issues_url":"https://api.github.com/repos/uwescience/raco/issues{/number}","pulls_url":"https://api.github.com/repos/uwescience/raco/pulls{/number}","milestones_url":"https://api.github.com/repos/uwescience/raco/milestones{/number}","notifications_url":"https://api.github.com/repos/uwescience/raco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwescience/raco/labels{/name}","releases_url":"https://api.github.com/repos/uwescience/raco/releases{/id}","created_at":"2012-10-21T22:26:47Z","updated_at":"2015-11-07T18:54:05Z","pushed_at":"2015-11-21T17:27:05Z","git_url":"git://github.com/uwescience/raco.git","ssh_url":"git@github.com:uwescience/raco.git","clone_url":"https://github.com/uwescience/raco.git","svn_url":"https://github.com/uwescience/raco","homepage":null,"size":55602,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":90,"forks":8,"open_issues":90,"watchers":20,"default_branch":"master"}},"base":{"label":"uwescience:master","ref":"master","sha":"c0a0cd711807f7404255c6c7087acd38e02aecc1","user":{"login":"uwescience","id":2243113,"avatar_url":"https://avatars.githubusercontent.com/u/2243113?v=3","gravatar_id":"","url":"https://api.github.com/users/uwescience","html_url":"https://github.com/uwescience","followers_url":"https://api.github.com/users/uwescience/followers","following_url":"https://api.github.com/users/uwescience/following{/other_user}","gists_url":"https://api.github.com/users/uwescience/gists{/gist_id}","starred_url":"https://api.github.com/users/uwescience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwescience/subscriptions","organizations_url":"https://api.github.com/users/uwescience/orgs","repos_url":"https://api.github.com/users/uwescience/repos","events_url":"https://api.github.com/users/uwescience/events{/privacy}","received_events_url":"https://api.github.com/users/uwescience/received_events","type":"Organization","site_admin":false},"repo":{"id":6326372,"name":"raco","full_name":"uwescience/raco","owner":{"login":"uwescience","id":2243113,"avatar_url":"https://avatars.githubusercontent.com/u/2243113?v=3","gravatar_id":"","url":"https://api.github.com/users/uwescience","html_url":"https://github.com/uwescience","followers_url":"https://api.github.com/users/uwescience/followers","following_url":"https://api.github.com/users/uwescience/following{/other_user}","gists_url":"https://api.github.com/users/uwescience/gists{/gist_id}","starred_url":"https://api.github.com/users/uwescience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwescience/subscriptions","organizations_url":"https://api.github.com/users/uwescience/orgs","repos_url":"https://api.github.com/users/uwescience/repos","events_url":"https://api.github.com/users/uwescience/events{/privacy}","received_events_url":"https://api.github.com/users/uwescience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwescience/raco","description":"Compilation and rule-based optimization framework for datalog.  Includes an RA compiler.","fork":false,"url":"https://api.github.com/repos/uwescience/raco","forks_url":"https://api.github.com/repos/uwescience/raco/forks","keys_url":"https://api.github.com/repos/uwescience/raco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwescience/raco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwescience/raco/teams","hooks_url":"https://api.github.com/repos/uwescience/raco/hooks","issue_events_url":"https://api.github.com/repos/uwescience/raco/issues/events{/number}","events_url":"https://api.github.com/repos/uwescience/raco/events","assignees_url":"https://api.github.com/repos/uwescience/raco/assignees{/user}","branches_url":"https://api.github.com/repos/uwescience/raco/branches{/branch}","tags_url":"https://api.github.com/repos/uwescience/raco/tags","blobs_url":"https://api.github.com/repos/uwescience/raco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwescience/raco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwescience/raco/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwescience/raco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwescience/raco/statuses/{sha}","languages_url":"https://api.github.com/repos/uwescience/raco/languages","stargazers_url":"https://api.github.com/repos/uwescience/raco/stargazers","contributors_url":"https://api.github.com/repos/uwescience/raco/contributors","subscribers_url":"https://api.github.com/repos/uwescience/raco/subscribers","subscription_url":"https://api.github.com/repos/uwescience/raco/subscription","commits_url":"https://api.github.com/repos/uwescience/raco/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwescience/raco/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwescience/raco/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwescience/raco/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwescience/raco/contents/{+path}","compare_url":"https://api.github.com/repos/uwescience/raco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwescience/raco/merges","archive_url":"https://api.github.com/repos/uwescience/raco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwescience/raco/downloads","issues_url":"https://api.github.com/repos/uwescience/raco/issues{/number}","pulls_url":"https://api.github.com/repos/uwescience/raco/pulls{/number}","milestones_url":"https://api.github.com/repos/uwescience/raco/milestones{/number}","notifications_url":"https://api.github.com/repos/uwescience/raco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwescience/raco/labels{/name}","releases_url":"https://api.github.com/repos/uwescience/raco/releases{/id}","created_at":"2012-10-21T22:26:47Z","updated_at":"2015-11-07T18:54:05Z","pushed_at":"2015-11-21T17:27:05Z","git_url":"git://github.com/uwescience/raco.git","ssh_url":"git@github.com:uwescience/raco.git","clone_url":"https://github.com/uwescience/raco.git","svn_url":"https://github.com/uwescience/raco","homepage":null,"size":55602,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":90,"forks":8,"open_issues":90,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uwescience/raco/pulls/452"},"html":{"href":"https://github.com/uwescience/raco/pull/452"},"issue":{"href":"https://api.github.com/repos/uwescience/raco/issues/452"},"comments":{"href":"https://api.github.com/repos/uwescience/raco/issues/452/comments"},"review_comments":{"href":"https://api.github.com/repos/uwescience/raco/pulls/452/comments"},"review_comment":{"href":"https://api.github.com/repos/uwescience/raco/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uwescience/raco/pulls/452/commits"},"statuses":{"href":"https://api.github.com/repos/uwescience/raco/statuses/57874b31eb252421669fe46d27a3eea9605d080b"}}}}