{"action":"closed","number":127,"pull_request":{"url":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/127","id":40288685,"html_url":"https://github.com/edx/edx-analytics-pipeline/pull/127","diff_url":"https://github.com/edx/edx-analytics-pipeline/pull/127.diff","patch_url":"https://github.com/edx/edx-analytics-pipeline/pull/127.patch","issue_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/issues/127","number":127,"state":"closed","locked":false,"title":"Properly escape the names of Hive columns","user":{"login":"bradenmacdonald","id":945577,"avatar_url":"https://avatars.githubusercontent.com/u/945577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"body":"**Description**: In [newer versions of Hive](http://mail-archives.apache.org/mod_mbox/hive-commits/201503.mbox/%3C20150310220045.68294AC02E7@hades.apache.org%3E), `date` and `interval` are keywords. This change escapes column names and partition key names when generating Hive DML queries.\r\n\r\nWithout this fix, the following error can occur when running the pipeline:\r\n```\r\nFailed to recognize predicate 'DATE'. Failed rule: 'identifier' in table name\r\n```\r\n\r\nThis fix should be fully compatible with any version of Hive.\r\n\r\n**JIRA**: [OSPR-718](https://openedx.atlassian.net/browse/OSPR-718)\r\n\r\n**Merge deadline**: Not an edX partner, so best effort.\r\n\r\n**Reviewers**: @mtyaka and TBD","created_at":"2015-07-18T08:01:01Z","updated_at":"2015-08-04T12:43:46Z","closed_at":"2015-08-04T12:43:46Z","merged_at":"2015-08-04T12:43:46Z","merge_commit_sha":"e822fd203141eb7647e1ec80fc59eb229818d0c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/127/commits","review_comments_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/127/comments","review_comment_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/issues/127/comments","statuses_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/statuses/2f5c7410915135a4ebc74cdb66736e2ca44e9dd9","head":{"label":"open-craft:escape-hive-columns","ref":"escape-hive-columns","sha":"2f5c7410915135a4ebc74cdb66736e2ca44e9dd9","user":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"repo":{"id":38666315,"name":"edx-analytics-pipeline","full_name":"open-craft/edx-analytics-pipeline","owner":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-craft/edx-analytics-pipeline","description":"","fork":true,"url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline","forks_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/forks","keys_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/teams","hooks_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/hooks","issue_events_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/issues/events{/number}","events_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/events","assignees_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/assignees{/user}","branches_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/branches{/branch}","tags_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/tags","blobs_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/statuses/{sha}","languages_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/languages","stargazers_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/stargazers","contributors_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/contributors","subscribers_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/subscribers","subscription_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/subscription","commits_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/contents/{+path}","compare_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/merges","archive_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/downloads","issues_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/issues{/number}","pulls_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/pulls{/number}","milestones_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/milestones{/number}","notifications_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/labels{/name}","releases_url":"https://api.github.com/repos/open-craft/edx-analytics-pipeline/releases{/id}","created_at":"2015-07-07T05:33:39Z","updated_at":"2015-07-07T05:33:40Z","pushed_at":"2015-07-31T19:02:40Z","git_url":"git://github.com/open-craft/edx-analytics-pipeline.git","ssh_url":"git@github.com:open-craft/edx-analytics-pipeline.git","clone_url":"https://github.com/open-craft/edx-analytics-pipeline.git","svn_url":"https://github.com/open-craft/edx-analytics-pipeline","homepage":null,"size":1611,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"51daccfdbd67dc53e274cbf0d270ffe12a2363ad","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":22929261,"name":"edx-analytics-pipeline","full_name":"edx/edx-analytics-pipeline","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-analytics-pipeline","description":"","fork":false,"url":"https://api.github.com/repos/edx/edx-analytics-pipeline","forks_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/forks","keys_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/teams","hooks_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/events","assignees_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/tags","blobs_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/languages","stargazers_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/subscription","commits_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/merges","archive_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/downloads","issues_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-analytics-pipeline/releases{/id}","created_at":"2014-08-13T19:57:17Z","updated_at":"2015-07-29T19:20:37Z","pushed_at":"2015-08-04T12:43:46Z","git_url":"git://github.com/edx/edx-analytics-pipeline.git","ssh_url":"git@github.com:edx/edx-analytics-pipeline.git","clone_url":"https://github.com/edx/edx-analytics-pipeline.git","svn_url":"https://github.com/edx/edx-analytics-pipeline","homepage":null,"size":6054,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":10,"forks":21,"open_issues":10,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/127"},"html":{"href":"https://github.com/edx/edx-analytics-pipeline/pull/127"},"issue":{"href":"https://api.github.com/repos/edx/edx-analytics-pipeline/issues/127"},"comments":{"href":"https://api.github.com/repos/edx/edx-analytics-pipeline/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-analytics-pipeline/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-analytics-pipeline/statuses/2f5c7410915135a4ebc74cdb66736e2ca44e9dd9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mulby","id":627177,"avatar_url":"https://avatars.githubusercontent.com/u/627177?v=3","gravatar_id":"","url":"https://api.github.com/users/mulby","html_url":"https://github.com/mulby","followers_url":"https://api.github.com/users/mulby/followers","following_url":"https://api.github.com/users/mulby/following{/other_user}","gists_url":"https://api.github.com/users/mulby/gists{/gist_id}","starred_url":"https://api.github.com/users/mulby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulby/subscriptions","organizations_url":"https://api.github.com/users/mulby/orgs","repos_url":"https://api.github.com/users/mulby/repos","events_url":"https://api.github.com/users/mulby/events{/privacy}","received_events_url":"https://api.github.com/users/mulby/received_events","type":"User","site_admin":false},"comments":10,"review_comments":0,"commits":3,"additions":33,"deletions":32,"changed_files":10}}