{"action":"opened","number":798,"pull_request":{"url":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/798","id":77225928,"html_url":"https://github.com/HuaweiBigData/carbondata/pull/798","diff_url":"https://github.com/HuaweiBigData/carbondata/pull/798.diff","patch_url":"https://github.com/HuaweiBigData/carbondata/pull/798.patch","issue_url":"https://api.github.com/repos/HuaweiBigData/carbondata/issues/798","number":798,"state":"open","locked":false,"title":"Record load performance statistics","user":{"login":"Zhangshunyu","id":13940237,"avatar_url":"https://avatars.githubusercontent.com/u/13940237?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhangshunyu","html_url":"https://github.com/Zhangshunyu","followers_url":"https://api.github.com/users/Zhangshunyu/followers","following_url":"https://api.github.com/users/Zhangshunyu/following{/other_user}","gists_url":"https://api.github.com/users/Zhangshunyu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhangshunyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhangshunyu/subscriptions","organizations_url":"https://api.github.com/users/Zhangshunyu/orgs","repos_url":"https://api.github.com/users/Zhangshunyu/repos","events_url":"https://api.github.com/users/Zhangshunyu/events{/privacy}","received_events_url":"https://api.github.com/users/Zhangshunyu/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n\r\n1)We can use a parameter \"enable.data.loading.statistics\" which can be configured by user to determine whether the statistics will be recorded and calculated during data loading, the default value is false.\r\n2)We defined a dummy util, if we don't need to record the statistics, it will do nothing.\r\n\r\nFor example, we set \"enable.data.loading.statistics\" to \"true\" and run CarbonExample, the message as following:\r\n\r\nData load request has been received for table default.t3\r\n\r\n```\r\n========== TIME_STATISTICS PartitionID: 0==========\r\nSTAGE 1 ->Load csv to DataFrame and generate block distinct values: 0.33(s)\r\nSTAGE 2 ->Global dict shuffle and write dict file: 0.106(s)\r\nSTAGE 2.1 ->  |_maximum distinct column shuffle time: 0.031(s)\r\nSTAGE 2.2 ->  |_maximum distinct column write dict file time: 0.053(s)\r\nSTAGE 3 ->LRU cache load: 0.001(s)\r\nSTAGE 4 ->Total cost of gen surrogate key, sort and write to temp files: 0.625(s)\r\nSTAGE 4.1 ->  |_read csv file: 0.47(s)\r\nSTAGE 4.2 ->  |_transform to surrogate key: 0.377(s)\r\nSTAGE 4.3 ->  |_sort rows and write to temp file: 0.366(s)\r\nSTAGE 5 ->Tansform to MDK, compress and write fact files: 0.165(s)\r\n========== BLOCK_INFO ==========\r\nBLOCK_INFO ->Node host: localhost\r\nBLOCK_INFO ->The block count in this node: 1\r\n===============Load_Speed_Info===============\r\nTotal Num of Records Processed: 1000\r\nTotal Time Cost: 1.227(s)\r\nTotal Load Speed: 814records/s\r\nGenerate Dictionaries Speed: 3030records/s\r\nRead CSV Speed: 2127 records/s\r\nGenerate Surrogate Key Speed: 2652 records/s\r\nSort Key/Write Temp Files Speed: 2732 records/s\r\nMDK Step Speed: 6060 records/s\r\n=============================================\r\n```\r\n## How was this patch tested?\r\n\r\nPass the exist tests.","created_at":"2016-07-13T03:40:01Z","updated_at":"2016-07-13T03:40:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/798/commits","review_comments_url":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/798/comments","review_comment_url":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HuaweiBigData/carbondata/issues/798/comments","statuses_url":"https://api.github.com/repos/HuaweiBigData/carbondata/statuses/8276d3945b9e591aa94e9692b14aa9353a5a612f","head":{"label":"Zhangshunyu:stat714","ref":"stat714","sha":"8276d3945b9e591aa94e9692b14aa9353a5a612f","user":{"login":"Zhangshunyu","id":13940237,"avatar_url":"https://avatars.githubusercontent.com/u/13940237?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhangshunyu","html_url":"https://github.com/Zhangshunyu","followers_url":"https://api.github.com/users/Zhangshunyu/followers","following_url":"https://api.github.com/users/Zhangshunyu/following{/other_user}","gists_url":"https://api.github.com/users/Zhangshunyu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhangshunyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhangshunyu/subscriptions","organizations_url":"https://api.github.com/users/Zhangshunyu/orgs","repos_url":"https://api.github.com/users/Zhangshunyu/repos","events_url":"https://api.github.com/users/Zhangshunyu/events{/privacy}","received_events_url":"https://api.github.com/users/Zhangshunyu/received_events","type":"User","site_admin":false},"repo":{"id":59263402,"name":"carbondata-2","full_name":"Zhangshunyu/carbondata-2","owner":{"login":"Zhangshunyu","id":13940237,"avatar_url":"https://avatars.githubusercontent.com/u/13940237?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhangshunyu","html_url":"https://github.com/Zhangshunyu","followers_url":"https://api.github.com/users/Zhangshunyu/followers","following_url":"https://api.github.com/users/Zhangshunyu/following{/other_user}","gists_url":"https://api.github.com/users/Zhangshunyu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhangshunyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhangshunyu/subscriptions","organizations_url":"https://api.github.com/users/Zhangshunyu/orgs","repos_url":"https://api.github.com/users/Zhangshunyu/repos","events_url":"https://api.github.com/users/Zhangshunyu/events{/privacy}","received_events_url":"https://api.github.com/users/Zhangshunyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zhangshunyu/carbondata-2","description":"CarbonData is a new hadoop native file format for faster interactive query","fork":true,"url":"https://api.github.com/repos/Zhangshunyu/carbondata-2","forks_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/forks","keys_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/teams","hooks_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/hooks","issue_events_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/issues/events{/number}","events_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/events","assignees_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/assignees{/user}","branches_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/branches{/branch}","tags_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/tags","blobs_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/statuses/{sha}","languages_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/languages","stargazers_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/stargazers","contributors_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/contributors","subscribers_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/subscribers","subscription_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/subscription","commits_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/contents/{+path}","compare_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/merges","archive_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/downloads","issues_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/issues{/number}","pulls_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/pulls{/number}","milestones_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/milestones{/number}","notifications_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/labels{/name}","releases_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/releases{/id}","deployments_url":"https://api.github.com/repos/Zhangshunyu/carbondata-2/deployments","created_at":"2016-05-20T03:53:30Z","updated_at":"2016-05-20T03:53:34Z","pushed_at":"2016-07-13T03:39:07Z","git_url":"git://github.com/Zhangshunyu/carbondata-2.git","ssh_url":"git@github.com:Zhangshunyu/carbondata-2.git","clone_url":"https://github.com/Zhangshunyu/carbondata-2.git","svn_url":"https://github.com/Zhangshunyu/carbondata-2","homepage":"","size":35997,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"HuaweiBigData:master","ref":"master","sha":"86ecaf5c38dc8d94699933cb765f488146c28b93","user":{"login":"HuaweiBigData","id":13159946,"avatar_url":"https://avatars.githubusercontent.com/u/13159946?v=3","gravatar_id":"","url":"https://api.github.com/users/HuaweiBigData","html_url":"https://github.com/HuaweiBigData","followers_url":"https://api.github.com/users/HuaweiBigData/followers","following_url":"https://api.github.com/users/HuaweiBigData/following{/other_user}","gists_url":"https://api.github.com/users/HuaweiBigData/gists{/gist_id}","starred_url":"https://api.github.com/users/HuaweiBigData/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuaweiBigData/subscriptions","organizations_url":"https://api.github.com/users/HuaweiBigData/orgs","repos_url":"https://api.github.com/users/HuaweiBigData/repos","events_url":"https://api.github.com/users/HuaweiBigData/events{/privacy}","received_events_url":"https://api.github.com/users/HuaweiBigData/received_events","type":"Organization","site_admin":false},"repo":{"id":52943921,"name":"carbondata","full_name":"HuaweiBigData/carbondata","owner":{"login":"HuaweiBigData","id":13159946,"avatar_url":"https://avatars.githubusercontent.com/u/13159946?v=3","gravatar_id":"","url":"https://api.github.com/users/HuaweiBigData","html_url":"https://github.com/HuaweiBigData","followers_url":"https://api.github.com/users/HuaweiBigData/followers","following_url":"https://api.github.com/users/HuaweiBigData/following{/other_user}","gists_url":"https://api.github.com/users/HuaweiBigData/gists{/gist_id}","starred_url":"https://api.github.com/users/HuaweiBigData/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuaweiBigData/subscriptions","organizations_url":"https://api.github.com/users/HuaweiBigData/orgs","repos_url":"https://api.github.com/users/HuaweiBigData/repos","events_url":"https://api.github.com/users/HuaweiBigData/events{/privacy}","received_events_url":"https://api.github.com/users/HuaweiBigData/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HuaweiBigData/carbondata","description":"Github has been migrated to apache: https://github.com/apache/incubator-carbondata, please fork new github.","fork":false,"url":"https://api.github.com/repos/HuaweiBigData/carbondata","forks_url":"https://api.github.com/repos/HuaweiBigData/carbondata/forks","keys_url":"https://api.github.com/repos/HuaweiBigData/carbondata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HuaweiBigData/carbondata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HuaweiBigData/carbondata/teams","hooks_url":"https://api.github.com/repos/HuaweiBigData/carbondata/hooks","issue_events_url":"https://api.github.com/repos/HuaweiBigData/carbondata/issues/events{/number}","events_url":"https://api.github.com/repos/HuaweiBigData/carbondata/events","assignees_url":"https://api.github.com/repos/HuaweiBigData/carbondata/assignees{/user}","branches_url":"https://api.github.com/repos/HuaweiBigData/carbondata/branches{/branch}","tags_url":"https://api.github.com/repos/HuaweiBigData/carbondata/tags","blobs_url":"https://api.github.com/repos/HuaweiBigData/carbondata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HuaweiBigData/carbondata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HuaweiBigData/carbondata/git/refs{/sha}","trees_url":"https://api.github.com/repos/HuaweiBigData/carbondata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HuaweiBigData/carbondata/statuses/{sha}","languages_url":"https://api.github.com/repos/HuaweiBigData/carbondata/languages","stargazers_url":"https://api.github.com/repos/HuaweiBigData/carbondata/stargazers","contributors_url":"https://api.github.com/repos/HuaweiBigData/carbondata/contributors","subscribers_url":"https://api.github.com/repos/HuaweiBigData/carbondata/subscribers","subscription_url":"https://api.github.com/repos/HuaweiBigData/carbondata/subscription","commits_url":"https://api.github.com/repos/HuaweiBigData/carbondata/commits{/sha}","git_commits_url":"https://api.github.com/repos/HuaweiBigData/carbondata/git/commits{/sha}","comments_url":"https://api.github.com/repos/HuaweiBigData/carbondata/comments{/number}","issue_comment_url":"https://api.github.com/repos/HuaweiBigData/carbondata/issues/comments{/number}","contents_url":"https://api.github.com/repos/HuaweiBigData/carbondata/contents/{+path}","compare_url":"https://api.github.com/repos/HuaweiBigData/carbondata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HuaweiBigData/carbondata/merges","archive_url":"https://api.github.com/repos/HuaweiBigData/carbondata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HuaweiBigData/carbondata/downloads","issues_url":"https://api.github.com/repos/HuaweiBigData/carbondata/issues{/number}","pulls_url":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls{/number}","milestones_url":"https://api.github.com/repos/HuaweiBigData/carbondata/milestones{/number}","notifications_url":"https://api.github.com/repos/HuaweiBigData/carbondata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HuaweiBigData/carbondata/labels{/name}","releases_url":"https://api.github.com/repos/HuaweiBigData/carbondata/releases{/id}","deployments_url":"https://api.github.com/repos/HuaweiBigData/carbondata/deployments","created_at":"2016-03-02T07:44:41Z","updated_at":"2016-07-12T13:57:14Z","pushed_at":"2016-07-12T14:51:04Z","git_url":"git://github.com/HuaweiBigData/carbondata.git","ssh_url":"git@github.com:HuaweiBigData/carbondata.git","clone_url":"https://github.com/HuaweiBigData/carbondata.git","svn_url":"https://github.com/HuaweiBigData/carbondata","homepage":"","size":66766,"stargazers_count":139,"watchers_count":139,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":90,"forks":68,"open_issues":90,"watchers":139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/798"},"html":{"href":"https://github.com/HuaweiBigData/carbondata/pull/798"},"issue":{"href":"https://api.github.com/repos/HuaweiBigData/carbondata/issues/798"},"comments":{"href":"https://api.github.com/repos/HuaweiBigData/carbondata/issues/798/comments"},"review_comments":{"href":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/798/comments"},"review_comment":{"href":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HuaweiBigData/carbondata/pulls/798/commits"},"statuses":{"href":"https://api.github.com/repos/HuaweiBigData/carbondata/statuses/8276d3945b9e591aa94e9692b14aa9353a5a612f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":747,"deletions":11,"changed_files":16}}
{"actor":{"display_login":"Zhangshunyu"}}