{"action":"created","comment":{"url":"https://api.github.com/repos/apache/arrow/pulls/comments/322531493","pull_request_review_id":285879997,"id":322531493,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMjUzMTQ5Mw==","diff_hunk":"@@ -210,6 +216,103 @@ impl ExecutionContext {\n         Ok(plan)\n     }\n \n+    /// Create a physical plan from a logical plan\n+    pub fn create_physical_plan(\n+        &mut self,\n+        logical_plan: &Arc<LogicalPlan>,\n+    ) -> Result<Arc<dyn ExecutionPlan>> {\n+        match logical_plan.as_ref() {\n+            LogicalPlan::TableScan {\n+                table_name,\n+                projection,\n+                ..\n+            } => match (*self.datasources).borrow().get(table_name) {\n+                Some(provider) => {\n+                    let partitions = provider.scan(projection, 16 * 1024)?;\n+                    if partitions.is_empty() {\n+                        Err(ExecutionError::General(\n+                            \"Table provider returned no partitions\".to_string(),\n+                        ))\n+                    } else {\n+                        let partition = partitions[0].lock().unwrap();\n+                        let schema = partition.schema();\n+                        let exec =\n+                            DatasourceExec::new(schema.clone(), partitions.clone());\n+                        Ok(Arc::new(exec))\n+                    }\n+                }\n+                _ => panic!(),","path":"rust/datafusion/src/execution/context.rs","position":63,"original_position":63,"commit_id":"21e646f50bff3512ae84995b0fb193a7fd57fbe4","original_commit_id":"21e646f50bff3512ae84995b0fb193a7fd57fbe4","user":{"login":"paddyhoran","id":5733408,"node_id":"MDQ6VXNlcjU3MzM0MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/5733408?v=4","gravatar_id":"","url":"https://api.github.com/users/paddyhoran","html_url":"https://github.com/paddyhoran","followers_url":"https://api.github.com/users/paddyhoran/followers","following_url":"https://api.github.com/users/paddyhoran/following{/other_user}","gists_url":"https://api.github.com/users/paddyhoran/gists{/gist_id}","starred_url":"https://api.github.com/users/paddyhoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paddyhoran/subscriptions","organizations_url":"https://api.github.com/users/paddyhoran/orgs","repos_url":"https://api.github.com/users/paddyhoran/repos","events_url":"https://api.github.com/users/paddyhoran/events{/privacy}","received_events_url":"https://api.github.com/users/paddyhoran/received_events","type":"User","site_admin":false},"body":"`panic` should provide some error message","created_at":"2019-09-10T02:44:03Z","updated_at":"2019-09-10T02:52:26Z","html_url":"https://github.com/apache/arrow/pull/5111#discussion_r322531493","pull_request_url":"https://api.github.com/repos/apache/arrow/pulls/5111","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/arrow/pulls/comments/322531493"},"html":{"href":"https://github.com/apache/arrow/pull/5111#discussion_r322531493"},"pull_request":{"href":"https://api.github.com/repos/apache/arrow/pulls/5111"}}},"pull_request":{"url":"https://api.github.com/repos/apache/arrow/pulls/5111","id":308303664,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA4MzAzNjY0","html_url":"https://github.com/apache/arrow/pull/5111","diff_url":"https://github.com/apache/arrow/pull/5111.diff","patch_url":"https://github.com/apache/arrow/pull/5111.patch","issue_url":"https://api.github.com/repos/apache/arrow/issues/5111","number":5111,"state":"open","locked":false,"title":"ARROW-6101: [Rust] [DataFusion] Parallel execution of physical query plan","user":{"login":"andygrove","id":934084,"node_id":"MDQ6VXNlcjkzNDA4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/934084?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrove","html_url":"https://github.com/andygrove","followers_url":"https://api.github.com/users/andygrove/followers","following_url":"https://api.github.com/users/andygrove/following{/other_user}","gists_url":"https://api.github.com/users/andygrove/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrove/subscriptions","organizations_url":"https://api.github.com/users/andygrove/orgs","repos_url":"https://api.github.com/users/andygrove/repos","events_url":"https://api.github.com/users/andygrove/events{/privacy}","received_events_url":"https://api.github.com/users/andygrove/received_events","type":"User","site_admin":false},"body":"This PR implements parallel query execution, with the ability to create a physical query plan from a logical plan, and call `ExecutionContext.collect()` to execute the plan and collect the results into a single vector.\r\n\r\nThis currently only supports trivial projections against partitioned CSV files.\r\n\r\nI will create separate PRs to add the other operators (selection, limit, aggregation, etc).\r\n","created_at":"2019-08-17T16:38:42Z","updated_at":"2019-09-10T02:52:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7497cfb3f4110fbc9fc4ccff38d91c7d63e489e","assignee":{"login":"andygrove","id":934084,"node_id":"MDQ6VXNlcjkzNDA4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/934084?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrove","html_url":"https://github.com/andygrove","followers_url":"https://api.github.com/users/andygrove/followers","following_url":"https://api.github.com/users/andygrove/following{/other_user}","gists_url":"https://api.github.com/users/andygrove/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrove/subscriptions","organizations_url":"https://api.github.com/users/andygrove/orgs","repos_url":"https://api.github.com/users/andygrove/repos","events_url":"https://api.github.com/users/andygrove/events{/privacy}","received_events_url":"https://api.github.com/users/andygrove/received_events","type":"User","site_admin":false},"assignees":[{"login":"andygrove","id":934084,"node_id":"MDQ6VXNlcjkzNDA4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/934084?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrove","html_url":"https://github.com/andygrove","followers_url":"https://api.github.com/users/andygrove/followers","following_url":"https://api.github.com/users/andygrove/following{/other_user}","gists_url":"https://api.github.com/users/andygrove/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrove/subscriptions","organizations_url":"https://api.github.com/users/andygrove/orgs","repos_url":"https://api.github.com/users/andygrove/repos","events_url":"https://api.github.com/users/andygrove/events{/privacy}","received_events_url":"https://api.github.com/users/andygrove/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"sunchao","id":506679,"node_id":"MDQ6VXNlcjUwNjY3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/506679?v=4","gravatar_id":"","url":"https://api.github.com/users/sunchao","html_url":"https://github.com/sunchao","followers_url":"https://api.github.com/users/sunchao/followers","following_url":"https://api.github.com/users/sunchao/following{/other_user}","gists_url":"https://api.github.com/users/sunchao/gists{/gist_id}","starred_url":"https://api.github.com/users/sunchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunchao/subscriptions","organizations_url":"https://api.github.com/users/sunchao/orgs","repos_url":"https://api.github.com/users/sunchao/repos","events_url":"https://api.github.com/users/sunchao/events{/privacy}","received_events_url":"https://api.github.com/users/sunchao/received_events","type":"User","site_admin":false},{"login":"nevi-me","id":1876878,"node_id":"MDQ6VXNlcjE4NzY4Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1876878?v=4","gravatar_id":"","url":"https://api.github.com/users/nevi-me","html_url":"https://github.com/nevi-me","followers_url":"https://api.github.com/users/nevi-me/followers","following_url":"https://api.github.com/users/nevi-me/following{/other_user}","gists_url":"https://api.github.com/users/nevi-me/gists{/gist_id}","starred_url":"https://api.github.com/users/nevi-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevi-me/subscriptions","organizations_url":"https://api.github.com/users/nevi-me/orgs","repos_url":"https://api.github.com/users/nevi-me/repos","events_url":"https://api.github.com/users/nevi-me/events{/privacy}","received_events_url":"https://api.github.com/users/nevi-me/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1273179966,"node_id":"MDU6TGFiZWwxMjczMTc5OTY2","url":"https://api.github.com/repos/apache/arrow/labels/datafusion","name":"datafusion","color":"e8c812","default":false},{"id":1271628855,"node_id":"MDU6TGFiZWwxMjcxNjI4ODU1","url":"https://api.github.com/repos/apache/arrow/labels/lang-rust","name":"lang-rust","color":"e8a28f","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apache/arrow/pulls/5111/commits","review_comments_url":"https://api.github.com/repos/apache/arrow/pulls/5111/comments","review_comment_url":"https://api.github.com/repos/apache/arrow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/arrow/issues/5111/comments","statuses_url":"https://api.github.com/repos/apache/arrow/statuses/21e646f50bff3512ae84995b0fb193a7fd57fbe4","head":{"label":"andygrove:ARROW-6101","ref":"ARROW-6101","sha":"21e646f50bff3512ae84995b0fb193a7fd57fbe4","user":{"login":"andygrove","id":934084,"node_id":"MDQ6VXNlcjkzNDA4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/934084?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrove","html_url":"https://github.com/andygrove","followers_url":"https://api.github.com/users/andygrove/followers","following_url":"https://api.github.com/users/andygrove/following{/other_user}","gists_url":"https://api.github.com/users/andygrove/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrove/subscriptions","organizations_url":"https://api.github.com/users/andygrove/orgs","repos_url":"https://api.github.com/users/andygrove/repos","events_url":"https://api.github.com/users/andygrove/events{/privacy}","received_events_url":"https://api.github.com/users/andygrove/received_events","type":"User","site_admin":false},"repo":{"id":158004630,"node_id":"MDEwOlJlcG9zaXRvcnkxNTgwMDQ2MzA=","name":"arrow","full_name":"andygrove/arrow","private":false,"owner":{"login":"andygrove","id":934084,"node_id":"MDQ6VXNlcjkzNDA4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/934084?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrove","html_url":"https://github.com/andygrove","followers_url":"https://api.github.com/users/andygrove/followers","following_url":"https://api.github.com/users/andygrove/following{/other_user}","gists_url":"https://api.github.com/users/andygrove/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrove/subscriptions","organizations_url":"https://api.github.com/users/andygrove/orgs","repos_url":"https://api.github.com/users/andygrove/repos","events_url":"https://api.github.com/users/andygrove/events{/privacy}","received_events_url":"https://api.github.com/users/andygrove/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andygrove/arrow","description":"Apache Arrow is a cross-language development platform for in-memory data. It specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware. It also provides computational libraries and zero-copy streaming messaging and interprocess communication. Languages currently supported include C, C++, Java, JavaScript, Python, and Ruby.","fork":true,"url":"https://api.github.com/repos/andygrove/arrow","forks_url":"https://api.github.com/repos/andygrove/arrow/forks","keys_url":"https://api.github.com/repos/andygrove/arrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andygrove/arrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andygrove/arrow/teams","hooks_url":"https://api.github.com/repos/andygrove/arrow/hooks","issue_events_url":"https://api.github.com/repos/andygrove/arrow/issues/events{/number}","events_url":"https://api.github.com/repos/andygrove/arrow/events","assignees_url":"https://api.github.com/repos/andygrove/arrow/assignees{/user}","branches_url":"https://api.github.com/repos/andygrove/arrow/branches{/branch}","tags_url":"https://api.github.com/repos/andygrove/arrow/tags","blobs_url":"https://api.github.com/repos/andygrove/arrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andygrove/arrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andygrove/arrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/andygrove/arrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andygrove/arrow/statuses/{sha}","languages_url":"https://api.github.com/repos/andygrove/arrow/languages","stargazers_url":"https://api.github.com/repos/andygrove/arrow/stargazers","contributors_url":"https://api.github.com/repos/andygrove/arrow/contributors","subscribers_url":"https://api.github.com/repos/andygrove/arrow/subscribers","subscription_url":"https://api.github.com/repos/andygrove/arrow/subscription","commits_url":"https://api.github.com/repos/andygrove/arrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/andygrove/arrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/andygrove/arrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/andygrove/arrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/andygrove/arrow/contents/{+path}","compare_url":"https://api.github.com/repos/andygrove/arrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andygrove/arrow/merges","archive_url":"https://api.github.com/repos/andygrove/arrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andygrove/arrow/downloads","issues_url":"https://api.github.com/repos/andygrove/arrow/issues{/number}","pulls_url":"https://api.github.com/repos/andygrove/arrow/pulls{/number}","milestones_url":"https://api.github.com/repos/andygrove/arrow/milestones{/number}","notifications_url":"https://api.github.com/repos/andygrove/arrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andygrove/arrow/labels{/name}","releases_url":"https://api.github.com/repos/andygrove/arrow/releases{/id}","deployments_url":"https://api.github.com/repos/andygrove/arrow/deployments","created_at":"2018-11-17T16:46:45Z","updated_at":"2019-09-07T16:29:51Z","pushed_at":"2019-09-08T17:02:10Z","git_url":"git://github.com/andygrove/arrow.git","ssh_url":"git@github.com:andygrove/arrow.git","clone_url":"https://github.com/andygrove/arrow.git","svn_url":"https://github.com/andygrove/arrow","homepage":"https://arrow.apache.org","size":36769,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"9fbbc73f5c91a3d02d3cd1f838b774bec7b8b8d6","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","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":51905353,"node_id":"MDEwOlJlcG9zaXRvcnk1MTkwNTM1Mw==","name":"arrow","full_name":"apache/arrow","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","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},"html_url":"https://github.com/apache/arrow","description":"Apache Arrow is a cross-language development platform for in-memory data. It specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware. It also provides computational libraries and zero-copy streaming messaging and interprocess communication. Languages currently supported include C, C++, Java, JavaScript, Python, and Ruby.","fork":false,"url":"https://api.github.com/repos/apache/arrow","forks_url":"https://api.github.com/repos/apache/arrow/forks","keys_url":"https://api.github.com/repos/apache/arrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/arrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/arrow/teams","hooks_url":"https://api.github.com/repos/apache/arrow/hooks","issue_events_url":"https://api.github.com/repos/apache/arrow/issues/events{/number}","events_url":"https://api.github.com/repos/apache/arrow/events","assignees_url":"https://api.github.com/repos/apache/arrow/assignees{/user}","branches_url":"https://api.github.com/repos/apache/arrow/branches{/branch}","tags_url":"https://api.github.com/repos/apache/arrow/tags","blobs_url":"https://api.github.com/repos/apache/arrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/arrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/arrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/arrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/arrow/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/arrow/languages","stargazers_url":"https://api.github.com/repos/apache/arrow/stargazers","contributors_url":"https://api.github.com/repos/apache/arrow/contributors","subscribers_url":"https://api.github.com/repos/apache/arrow/subscribers","subscription_url":"https://api.github.com/repos/apache/arrow/subscription","commits_url":"https://api.github.com/repos/apache/arrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/arrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/arrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/arrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/arrow/contents/{+path}","compare_url":"https://api.github.com/repos/apache/arrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/arrow/merges","archive_url":"https://api.github.com/repos/apache/arrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/arrow/downloads","issues_url":"https://api.github.com/repos/apache/arrow/issues{/number}","pulls_url":"https://api.github.com/repos/apache/arrow/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/arrow/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/arrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/arrow/labels{/name}","releases_url":"https://api.github.com/repos/apache/arrow/releases{/id}","deployments_url":"https://api.github.com/repos/apache/arrow/deployments","created_at":"2016-02-17T08:00:23Z","updated_at":"2019-09-10T02:09:00Z","pushed_at":"2019-09-10T02:15:09Z","git_url":"git://github.com/apache/arrow.git","ssh_url":"git@github.com:apache/arrow.git","clone_url":"https://github.com/apache/arrow.git","svn_url":"https://github.com/apache/arrow","homepage":"https://arrow.apache.org","size":36509,"stargazers_count":4485,"watchers_count":4485,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1104,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":75,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1104,"open_issues":75,"watchers":4485,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/arrow/pulls/5111"},"html":{"href":"https://github.com/apache/arrow/pull/5111"},"issue":{"href":"https://api.github.com/repos/apache/arrow/issues/5111"},"comments":{"href":"https://api.github.com/repos/apache/arrow/issues/5111/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/arrow/pulls/5111/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/arrow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/arrow/pulls/5111/commits"},"statuses":{"href":"https://api.github.com/repos/apache/arrow/statuses/21e646f50bff3512ae84995b0fb193a7fd57fbe4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"paddyhoran"}}