{"action":"created","comment":{"url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/comments/38954359","id":38954359,"diff_hunk":"@@ -104,6 +104,23 @@ public void testSelectPartitionedHiveTableDifferentFormats()\n         assertProcessedLinesCountEquals(selectFromOnePartitionsSql, onePartitionQueryResult, 1);\n     }\n \n+    @Test(groups = HIVE_CONNECTOR)\n+    public void testUnionPartitionedHiveTableDifferentFormats()\n+            throws SQLException\n+    {\n+        String tableNameInDatabase = tablesState.get(TABLE_NAME).getNameInDatabase();\n+\n+        String selectFromAllPartitionsSql = \"SELECT * FROM \" + tableNameInDatabase + \" UNION ALL SELECT * FROM \" + tableNameInDatabase;\n+        QueryResult allPartitionsQueryResult = query(selectFromAllPartitionsSql);\n+        assertThat(allPartitionsQueryResult).containsOnly(row(42, 1), row(42, 2), row(42, 1), row(42, 2));\n+        assertProcessedLinesCountEquals(selectFromAllPartitionsSql, allPartitionsQueryResult, 4);\n+\n+        String selectFromOnePartitionsSql = \"SELECT * FROM \" + tableNameInDatabase + \" WHERE part_col = 2 UNION ALL SELECT * FROM \" + tableNameInDatabase;","path":"presto-product-tests/src/test/java/com/facebook/presto/tests/hive/TestTablePartitioningSelect.java","position":15,"original_position":15,"commit_id":"1498ffa6862dcc2e41ff2483154500f130e62433","original_commit_id":"1498ffa6862dcc2e41ff2483154500f130e62433","user":{"login":"rschlussel","id":10963789,"avatar_url":"https://avatars.githubusercontent.com/u/10963789?v=3","gravatar_id":"","url":"https://api.github.com/users/rschlussel","html_url":"https://github.com/rschlussel","followers_url":"https://api.github.com/users/rschlussel/followers","following_url":"https://api.github.com/users/rschlussel/following{/other_user}","gists_url":"https://api.github.com/users/rschlussel/gists{/gist_id}","starred_url":"https://api.github.com/users/rschlussel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rschlussel/subscriptions","organizations_url":"https://api.github.com/users/rschlussel/orgs","repos_url":"https://api.github.com/users/rschlussel/repos","events_url":"https://api.github.com/users/rschlussel/events{/privacy}","received_events_url":"https://api.github.com/users/rschlussel/received_events","type":"User","site_admin":false},"body":"tiny thing: selectFromOnePartitionSql (no 's')","created_at":"2015-09-08T17:28:47Z","updated_at":"2015-09-08T17:28:47Z","html_url":"https://github.com/TeradataCenterForHadoop/presto/pull/32#discussion_r38954359","pull_request_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/comments/38954359"},"html":{"href":"https://github.com/TeradataCenterForHadoop/presto/pull/32#discussion_r38954359"},"pull_request":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32","id":44450290,"html_url":"https://github.com/TeradataCenterForHadoop/presto/pull/32","diff_url":"https://github.com/TeradataCenterForHadoop/presto/pull/32.diff","patch_url":"https://github.com/TeradataCenterForHadoop/presto/pull/32.patch","issue_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/32","number":32,"state":"open","locked":false,"title":"Test UNION on partitioned tables","user":{"login":"cawallin","id":3652644,"avatar_url":"https://avatars.githubusercontent.com/u/3652644?v=3","gravatar_id":"","url":"https://api.github.com/users/cawallin","html_url":"https://github.com/cawallin","followers_url":"https://api.github.com/users/cawallin/followers","following_url":"https://api.github.com/users/cawallin/following{/other_user}","gists_url":"https://api.github.com/users/cawallin/gists{/gist_id}","starred_url":"https://api.github.com/users/cawallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cawallin/subscriptions","organizations_url":"https://api.github.com/users/cawallin/orgs","repos_url":"https://api.github.com/users/cawallin/repos","events_url":"https://api.github.com/users/cawallin/events{/privacy}","received_events_url":"https://api.github.com/users/cawallin/received_events","type":"User","site_admin":false},"body":"UNION runs partitioned if the plan is partitioned, so make sure that\r\nUNION queries behave as expected on partitioned tables.\r\n\r\nTesting: ran test","created_at":"2015-09-08T15:59:53Z","updated_at":"2015-09-08T17:28:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b920bbbf0badc698c7e26d96388ffdae1a3e384","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32/commits","review_comments_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32/comments","review_comment_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/32/comments","statuses_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/statuses/1498ffa6862dcc2e41ff2483154500f130e62433","head":{"label":"TeradataCenterForHadoop:union-partitioned","ref":"union-partitioned","sha":"1498ffa6862dcc2e41ff2483154500f130e62433","user":{"login":"TeradataCenterForHadoop","id":12552963,"avatar_url":"https://avatars.githubusercontent.com/u/12552963?v=3","gravatar_id":"","url":"https://api.github.com/users/TeradataCenterForHadoop","html_url":"https://github.com/TeradataCenterForHadoop","followers_url":"https://api.github.com/users/TeradataCenterForHadoop/followers","following_url":"https://api.github.com/users/TeradataCenterForHadoop/following{/other_user}","gists_url":"https://api.github.com/users/TeradataCenterForHadoop/gists{/gist_id}","starred_url":"https://api.github.com/users/TeradataCenterForHadoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeradataCenterForHadoop/subscriptions","organizations_url":"https://api.github.com/users/TeradataCenterForHadoop/orgs","repos_url":"https://api.github.com/users/TeradataCenterForHadoop/repos","events_url":"https://api.github.com/users/TeradataCenterForHadoop/events{/privacy}","received_events_url":"https://api.github.com/users/TeradataCenterForHadoop/received_events","type":"Organization","site_admin":false},"repo":{"id":36903368,"name":"presto","full_name":"TeradataCenterForHadoop/presto","owner":{"login":"TeradataCenterForHadoop","id":12552963,"avatar_url":"https://avatars.githubusercontent.com/u/12552963?v=3","gravatar_id":"","url":"https://api.github.com/users/TeradataCenterForHadoop","html_url":"https://github.com/TeradataCenterForHadoop","followers_url":"https://api.github.com/users/TeradataCenterForHadoop/followers","following_url":"https://api.github.com/users/TeradataCenterForHadoop/following{/other_user}","gists_url":"https://api.github.com/users/TeradataCenterForHadoop/gists{/gist_id}","starred_url":"https://api.github.com/users/TeradataCenterForHadoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeradataCenterForHadoop/subscriptions","organizations_url":"https://api.github.com/users/TeradataCenterForHadoop/orgs","repos_url":"https://api.github.com/users/TeradataCenterForHadoop/repos","events_url":"https://api.github.com/users/TeradataCenterForHadoop/events{/privacy}","received_events_url":"https://api.github.com/users/TeradataCenterForHadoop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeradataCenterForHadoop/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":true,"url":"https://api.github.com/repos/TeradataCenterForHadoop/presto","forks_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/forks","keys_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/teams","hooks_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/hooks","issue_events_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/events{/number}","events_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/events","assignees_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/assignees{/user}","branches_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/branches{/branch}","tags_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/tags","blobs_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/languages","stargazers_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/stargazers","contributors_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/contributors","subscribers_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/subscribers","subscription_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/subscription","commits_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/contents/{+path}","compare_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/merges","archive_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/downloads","issues_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues{/number}","pulls_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/labels{/name}","releases_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/releases{/id}","created_at":"2015-06-05T00:38:37Z","updated_at":"2015-08-31T07:43:25Z","pushed_at":"2015-09-08T16:11:06Z","git_url":"git://github.com/TeradataCenterForHadoop/presto.git","ssh_url":"git@github.com:TeradataCenterForHadoop/presto.git","clone_url":"https://github.com/TeradataCenterForHadoop/presto.git","svn_url":"https://github.com/TeradataCenterForHadoop/presto","homepage":"https://prestodb.io","size":48202,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":2,"default_branch":"master"}},"base":{"label":"TeradataCenterForHadoop:0.115t","ref":"0.115t","sha":"3069f41138c931543a87239ef26522c96f749879","user":{"login":"TeradataCenterForHadoop","id":12552963,"avatar_url":"https://avatars.githubusercontent.com/u/12552963?v=3","gravatar_id":"","url":"https://api.github.com/users/TeradataCenterForHadoop","html_url":"https://github.com/TeradataCenterForHadoop","followers_url":"https://api.github.com/users/TeradataCenterForHadoop/followers","following_url":"https://api.github.com/users/TeradataCenterForHadoop/following{/other_user}","gists_url":"https://api.github.com/users/TeradataCenterForHadoop/gists{/gist_id}","starred_url":"https://api.github.com/users/TeradataCenterForHadoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeradataCenterForHadoop/subscriptions","organizations_url":"https://api.github.com/users/TeradataCenterForHadoop/orgs","repos_url":"https://api.github.com/users/TeradataCenterForHadoop/repos","events_url":"https://api.github.com/users/TeradataCenterForHadoop/events{/privacy}","received_events_url":"https://api.github.com/users/TeradataCenterForHadoop/received_events","type":"Organization","site_admin":false},"repo":{"id":36903368,"name":"presto","full_name":"TeradataCenterForHadoop/presto","owner":{"login":"TeradataCenterForHadoop","id":12552963,"avatar_url":"https://avatars.githubusercontent.com/u/12552963?v=3","gravatar_id":"","url":"https://api.github.com/users/TeradataCenterForHadoop","html_url":"https://github.com/TeradataCenterForHadoop","followers_url":"https://api.github.com/users/TeradataCenterForHadoop/followers","following_url":"https://api.github.com/users/TeradataCenterForHadoop/following{/other_user}","gists_url":"https://api.github.com/users/TeradataCenterForHadoop/gists{/gist_id}","starred_url":"https://api.github.com/users/TeradataCenterForHadoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeradataCenterForHadoop/subscriptions","organizations_url":"https://api.github.com/users/TeradataCenterForHadoop/orgs","repos_url":"https://api.github.com/users/TeradataCenterForHadoop/repos","events_url":"https://api.github.com/users/TeradataCenterForHadoop/events{/privacy}","received_events_url":"https://api.github.com/users/TeradataCenterForHadoop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeradataCenterForHadoop/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":true,"url":"https://api.github.com/repos/TeradataCenterForHadoop/presto","forks_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/forks","keys_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/teams","hooks_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/hooks","issue_events_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/events{/number}","events_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/events","assignees_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/assignees{/user}","branches_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/branches{/branch}","tags_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/tags","blobs_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/languages","stargazers_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/stargazers","contributors_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/contributors","subscribers_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/subscribers","subscription_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/subscription","commits_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/contents/{+path}","compare_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/merges","archive_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/downloads","issues_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues{/number}","pulls_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/labels{/name}","releases_url":"https://api.github.com/repos/TeradataCenterForHadoop/presto/releases{/id}","created_at":"2015-06-05T00:38:37Z","updated_at":"2015-08-31T07:43:25Z","pushed_at":"2015-09-08T16:11:06Z","git_url":"git://github.com/TeradataCenterForHadoop/presto.git","ssh_url":"git@github.com:TeradataCenterForHadoop/presto.git","clone_url":"https://github.com/TeradataCenterForHadoop/presto.git","svn_url":"https://github.com/TeradataCenterForHadoop/presto","homepage":"https://prestodb.io","size":48202,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32"},"html":{"href":"https://github.com/TeradataCenterForHadoop/presto/pull/32"},"issue":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/32"},"comments":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/TeradataCenterForHadoop/presto/statuses/1498ffa6862dcc2e41ff2483154500f130e62433"}}}}