{"action":"opened","number":55,"pull_request":{"url":"https://api.github.com/repos/apache/metamodel/pulls/55","id":46714524,"html_url":"https://github.com/apache/metamodel/pull/55","diff_url":"https://github.com/apache/metamodel/pull/55.diff","patch_url":"https://github.com/apache/metamodel/pull/55.patch","issue_url":"https://api.github.com/repos/apache/metamodel/issues/55","number":55,"state":"open","locked":false,"title":"Metamodel 192/datatype conversion functions","user":{"login":"kaspersorensen","id":291450,"avatar_url":"https://avatars.githubusercontent.com/u/291450?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspersorensen","html_url":"https://github.com/kaspersorensen","followers_url":"https://api.github.com/users/kaspersorensen/followers","following_url":"https://api.github.com/users/kaspersorensen/following{/other_user}","gists_url":"https://api.github.com/users/kaspersorensen/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspersorensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspersorensen/subscriptions","organizations_url":"https://api.github.com/users/kaspersorensen/orgs","repos_url":"https://api.github.com/users/kaspersorensen/repos","events_url":"https://api.github.com/users/kaspersorensen/events{/privacy}","received_events_url":"https://api.github.com/users/kaspersorensen/received_events","type":"User","site_admin":false},"body":"__Do not merge yet__\r\n\r\nThis is my first attempt at implementing METAMODEL-192, which thereby is also the first time we make pluggable ScalarFunctions available. I wanted to share it early on since I think some people will find the approach interesting ( @ardlema ?) as inspiration for similar scalar functions (SUBSTRING etc.) ... Please let me know if you think the approach is good or not.","created_at":"2015-10-03T22:10:59Z","updated_at":"2015-10-03T22:10:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/metamodel/pulls/55/commits","review_comments_url":"https://api.github.com/repos/apache/metamodel/pulls/55/comments","review_comment_url":"https://api.github.com/repos/apache/metamodel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/metamodel/issues/55/comments","statuses_url":"https://api.github.com/repos/apache/metamodel/statuses/3cb4cd8d7c475533f92292baee55e463adca2a57","head":{"label":"kaspersorensen:METAMODEL-192/datatype-conversion-functions","ref":"METAMODEL-192/datatype-conversion-functions","sha":"3cb4cd8d7c475533f92292baee55e463adca2a57","user":{"login":"kaspersorensen","id":291450,"avatar_url":"https://avatars.githubusercontent.com/u/291450?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspersorensen","html_url":"https://github.com/kaspersorensen","followers_url":"https://api.github.com/users/kaspersorensen/followers","following_url":"https://api.github.com/users/kaspersorensen/following{/other_user}","gists_url":"https://api.github.com/users/kaspersorensen/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspersorensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspersorensen/subscriptions","organizations_url":"https://api.github.com/users/kaspersorensen/orgs","repos_url":"https://api.github.com/users/kaspersorensen/repos","events_url":"https://api.github.com/users/kaspersorensen/events{/privacy}","received_events_url":"https://api.github.com/users/kaspersorensen/received_events","type":"User","site_admin":false},"repo":{"id":37382170,"name":"metamodel","full_name":"kaspersorensen/metamodel","owner":{"login":"kaspersorensen","id":291450,"avatar_url":"https://avatars.githubusercontent.com/u/291450?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspersorensen","html_url":"https://github.com/kaspersorensen","followers_url":"https://api.github.com/users/kaspersorensen/followers","following_url":"https://api.github.com/users/kaspersorensen/following{/other_user}","gists_url":"https://api.github.com/users/kaspersorensen/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspersorensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspersorensen/subscriptions","organizations_url":"https://api.github.com/users/kaspersorensen/orgs","repos_url":"https://api.github.com/users/kaspersorensen/repos","events_url":"https://api.github.com/users/kaspersorensen/events{/privacy}","received_events_url":"https://api.github.com/users/kaspersorensen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaspersorensen/metamodel","description":"Mirror of Apache Metamodel","fork":true,"url":"https://api.github.com/repos/kaspersorensen/metamodel","forks_url":"https://api.github.com/repos/kaspersorensen/metamodel/forks","keys_url":"https://api.github.com/repos/kaspersorensen/metamodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaspersorensen/metamodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaspersorensen/metamodel/teams","hooks_url":"https://api.github.com/repos/kaspersorensen/metamodel/hooks","issue_events_url":"https://api.github.com/repos/kaspersorensen/metamodel/issues/events{/number}","events_url":"https://api.github.com/repos/kaspersorensen/metamodel/events","assignees_url":"https://api.github.com/repos/kaspersorensen/metamodel/assignees{/user}","branches_url":"https://api.github.com/repos/kaspersorensen/metamodel/branches{/branch}","tags_url":"https://api.github.com/repos/kaspersorensen/metamodel/tags","blobs_url":"https://api.github.com/repos/kaspersorensen/metamodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaspersorensen/metamodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaspersorensen/metamodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaspersorensen/metamodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaspersorensen/metamodel/statuses/{sha}","languages_url":"https://api.github.com/repos/kaspersorensen/metamodel/languages","stargazers_url":"https://api.github.com/repos/kaspersorensen/metamodel/stargazers","contributors_url":"https://api.github.com/repos/kaspersorensen/metamodel/contributors","subscribers_url":"https://api.github.com/repos/kaspersorensen/metamodel/subscribers","subscription_url":"https://api.github.com/repos/kaspersorensen/metamodel/subscription","commits_url":"https://api.github.com/repos/kaspersorensen/metamodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaspersorensen/metamodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaspersorensen/metamodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaspersorensen/metamodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaspersorensen/metamodel/contents/{+path}","compare_url":"https://api.github.com/repos/kaspersorensen/metamodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaspersorensen/metamodel/merges","archive_url":"https://api.github.com/repos/kaspersorensen/metamodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaspersorensen/metamodel/downloads","issues_url":"https://api.github.com/repos/kaspersorensen/metamodel/issues{/number}","pulls_url":"https://api.github.com/repos/kaspersorensen/metamodel/pulls{/number}","milestones_url":"https://api.github.com/repos/kaspersorensen/metamodel/milestones{/number}","notifications_url":"https://api.github.com/repos/kaspersorensen/metamodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaspersorensen/metamodel/labels{/name}","releases_url":"https://api.github.com/repos/kaspersorensen/metamodel/releases{/id}","created_at":"2015-06-13T18:05:00Z","updated_at":"2015-06-13T18:05:02Z","pushed_at":"2015-10-03T22:09:30Z","git_url":"git://github.com/kaspersorensen/metamodel.git","ssh_url":"git@github.com:kaspersorensen/metamodel.git","clone_url":"https://github.com/kaspersorensen/metamodel.git","svn_url":"https://github.com/kaspersorensen/metamodel","homepage":null,"size":3734,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"b417bc9c5148bca27c14688638c3e6aa9e50a50a","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":11943595,"name":"metamodel","full_name":"apache/metamodel","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/metamodel","description":"Mirror of Apache Metamodel","fork":false,"url":"https://api.github.com/repos/apache/metamodel","forks_url":"https://api.github.com/repos/apache/metamodel/forks","keys_url":"https://api.github.com/repos/apache/metamodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/metamodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/metamodel/teams","hooks_url":"https://api.github.com/repos/apache/metamodel/hooks","issue_events_url":"https://api.github.com/repos/apache/metamodel/issues/events{/number}","events_url":"https://api.github.com/repos/apache/metamodel/events","assignees_url":"https://api.github.com/repos/apache/metamodel/assignees{/user}","branches_url":"https://api.github.com/repos/apache/metamodel/branches{/branch}","tags_url":"https://api.github.com/repos/apache/metamodel/tags","blobs_url":"https://api.github.com/repos/apache/metamodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/metamodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/metamodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/metamodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/metamodel/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/metamodel/languages","stargazers_url":"https://api.github.com/repos/apache/metamodel/stargazers","contributors_url":"https://api.github.com/repos/apache/metamodel/contributors","subscribers_url":"https://api.github.com/repos/apache/metamodel/subscribers","subscription_url":"https://api.github.com/repos/apache/metamodel/subscription","commits_url":"https://api.github.com/repos/apache/metamodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/metamodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/metamodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/metamodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/metamodel/contents/{+path}","compare_url":"https://api.github.com/repos/apache/metamodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/metamodel/merges","archive_url":"https://api.github.com/repos/apache/metamodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/metamodel/downloads","issues_url":"https://api.github.com/repos/apache/metamodel/issues{/number}","pulls_url":"https://api.github.com/repos/apache/metamodel/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/metamodel/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/metamodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/metamodel/labels{/name}","releases_url":"https://api.github.com/repos/apache/metamodel/releases{/id}","created_at":"2013-08-07T07:00:14Z","updated_at":"2015-09-25T19:27:06Z","pushed_at":"2015-10-03T10:25:36Z","git_url":"git://github.com/apache/metamodel.git","ssh_url":"git@github.com:apache/metamodel.git","clone_url":"https://github.com/apache/metamodel.git","svn_url":"https://github.com/apache/metamodel","homepage":null,"size":5033,"stargazers_count":35,"watchers_count":35,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":"git://git.apache.org/incubator-metamodel.git","open_issues_count":8,"forks":32,"open_issues":8,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/metamodel/pulls/55"},"html":{"href":"https://github.com/apache/metamodel/pull/55"},"issue":{"href":"https://api.github.com/repos/apache/metamodel/issues/55"},"comments":{"href":"https://api.github.com/repos/apache/metamodel/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/metamodel/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/metamodel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/metamodel/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/apache/metamodel/statuses/3cb4cd8d7c475533f92292baee55e463adca2a57"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":581,"deletions":80,"changed_files":27}}