{"action":"created","comment":{"url":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/comments/37592210","id":37592210,"diff_hunk":"@@ -85,14 +79,70 @@ class Tables(sqlContext: SQLContext, dsdgenDir: String, scaleFactor: Int) extend\n \n       val convertedData = {\n         val columns = schema.fields.map { f =>\n-          val columnName = new ColumnName(f.name)\n-          columnName.cast(f.dataType).as(f.name)\n+          col(f.name).cast(f.dataType).as(f.name)\n         }\n         stringData.select(columns: _*)\n       }\n \n       convertedData\n     }\n+\n+    def genData(location: String, format: String, overwrite: Boolean): Unit = {","path":"src/main/scala/com/databricks/spark/sql/perf/tpcds/Tables.scala","position":81,"original_position":70,"commit_id":"7d0b6d78b584b78830e80590af8756392a08b066","original_commit_id":"2e1817adb0f7e89cd8bc3823289a1207e0cae5fd","user":{"login":"yhuai","id":2072857,"avatar_url":"https://avatars.githubusercontent.com/u/2072857?v=3","gravatar_id":"","url":"https://api.github.com/users/yhuai","html_url":"https://github.com/yhuai","followers_url":"https://api.github.com/users/yhuai/followers","following_url":"https://api.github.com/users/yhuai/following{/other_user}","gists_url":"https://api.github.com/users/yhuai/gists{/gist_id}","starred_url":"https://api.github.com/users/yhuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhuai/subscriptions","organizations_url":"https://api.github.com/users/yhuai/orgs","repos_url":"https://api.github.com/users/yhuai/repos","events_url":"https://api.github.com/users/yhuai/events{/privacy}","received_events_url":"https://api.github.com/users/yhuai/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2015-08-20T23:19:25Z","updated_at":"2015-08-20T23:19:25Z","html_url":"https://github.com/databricks/spark-sql-perf/pull/9#discussion_r37592210","pull_request_url":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/comments/37592210"},"html":{"href":"https://github.com/databricks/spark-sql-perf/pull/9#discussion_r37592210"},"pull_request":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9","id":42982860,"html_url":"https://github.com/databricks/spark-sql-perf/pull/9","diff_url":"https://github.com/databricks/spark-sql-perf/pull/9.diff","patch_url":"https://github.com/databricks/spark-sql-perf/pull/9.patch","issue_url":"https://api.github.com/repos/databricks/spark-sql-perf/issues/9","number":9,"state":"open","locked":false,"title":"Add data generation support for TPC-DS","user":{"login":"yhuai","id":2072857,"avatar_url":"https://avatars.githubusercontent.com/u/2072857?v=3","gravatar_id":"","url":"https://api.github.com/users/yhuai","html_url":"https://github.com/yhuai","followers_url":"https://api.github.com/users/yhuai/followers","following_url":"https://api.github.com/users/yhuai/following{/other_user}","gists_url":"https://api.github.com/users/yhuai/gists{/gist_id}","starred_url":"https://api.github.com/users/yhuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhuai/subscriptions","organizations_url":"https://api.github.com/users/yhuai/orgs","repos_url":"https://api.github.com/users/yhuai/repos","events_url":"https://api.github.com/users/yhuai/events{/privacy}","received_events_url":"https://api.github.com/users/yhuai/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-20T21:51:53Z","updated_at":"2015-08-20T23:19:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cd82bc89e4df4a865561cc4f53f35dc9d447cba","assignee":{"login":"marmbrus","id":527,"avatar_url":"https://avatars.githubusercontent.com/u/527?v=3","gravatar_id":"","url":"https://api.github.com/users/marmbrus","html_url":"https://github.com/marmbrus","followers_url":"https://api.github.com/users/marmbrus/followers","following_url":"https://api.github.com/users/marmbrus/following{/other_user}","gists_url":"https://api.github.com/users/marmbrus/gists{/gist_id}","starred_url":"https://api.github.com/users/marmbrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmbrus/subscriptions","organizations_url":"https://api.github.com/users/marmbrus/orgs","repos_url":"https://api.github.com/users/marmbrus/repos","events_url":"https://api.github.com/users/marmbrus/events{/privacy}","received_events_url":"https://api.github.com/users/marmbrus/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9/commits","review_comments_url":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9/comments","review_comment_url":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/databricks/spark-sql-perf/issues/9/comments","statuses_url":"https://api.github.com/repos/databricks/spark-sql-perf/statuses/7d0b6d78b584b78830e80590af8756392a08b066","head":{"label":"yhuai:genData","ref":"genData","sha":"7d0b6d78b584b78830e80590af8756392a08b066","user":{"login":"yhuai","id":2072857,"avatar_url":"https://avatars.githubusercontent.com/u/2072857?v=3","gravatar_id":"","url":"https://api.github.com/users/yhuai","html_url":"https://github.com/yhuai","followers_url":"https://api.github.com/users/yhuai/followers","following_url":"https://api.github.com/users/yhuai/following{/other_user}","gists_url":"https://api.github.com/users/yhuai/gists{/gist_id}","starred_url":"https://api.github.com/users/yhuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhuai/subscriptions","organizations_url":"https://api.github.com/users/yhuai/orgs","repos_url":"https://api.github.com/users/yhuai/repos","events_url":"https://api.github.com/users/yhuai/events{/privacy}","received_events_url":"https://api.github.com/users/yhuai/received_events","type":"User","site_admin":false},"repo":{"id":35235005,"name":"spark-sql-perf","full_name":"yhuai/spark-sql-perf","owner":{"login":"yhuai","id":2072857,"avatar_url":"https://avatars.githubusercontent.com/u/2072857?v=3","gravatar_id":"","url":"https://api.github.com/users/yhuai","html_url":"https://github.com/yhuai","followers_url":"https://api.github.com/users/yhuai/followers","following_url":"https://api.github.com/users/yhuai/following{/other_user}","gists_url":"https://api.github.com/users/yhuai/gists{/gist_id}","starred_url":"https://api.github.com/users/yhuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhuai/subscriptions","organizations_url":"https://api.github.com/users/yhuai/orgs","repos_url":"https://api.github.com/users/yhuai/repos","events_url":"https://api.github.com/users/yhuai/events{/privacy}","received_events_url":"https://api.github.com/users/yhuai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yhuai/spark-sql-perf","description":"","fork":true,"url":"https://api.github.com/repos/yhuai/spark-sql-perf","forks_url":"https://api.github.com/repos/yhuai/spark-sql-perf/forks","keys_url":"https://api.github.com/repos/yhuai/spark-sql-perf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yhuai/spark-sql-perf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yhuai/spark-sql-perf/teams","hooks_url":"https://api.github.com/repos/yhuai/spark-sql-perf/hooks","issue_events_url":"https://api.github.com/repos/yhuai/spark-sql-perf/issues/events{/number}","events_url":"https://api.github.com/repos/yhuai/spark-sql-perf/events","assignees_url":"https://api.github.com/repos/yhuai/spark-sql-perf/assignees{/user}","branches_url":"https://api.github.com/repos/yhuai/spark-sql-perf/branches{/branch}","tags_url":"https://api.github.com/repos/yhuai/spark-sql-perf/tags","blobs_url":"https://api.github.com/repos/yhuai/spark-sql-perf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yhuai/spark-sql-perf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yhuai/spark-sql-perf/git/refs{/sha}","trees_url":"https://api.github.com/repos/yhuai/spark-sql-perf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yhuai/spark-sql-perf/statuses/{sha}","languages_url":"https://api.github.com/repos/yhuai/spark-sql-perf/languages","stargazers_url":"https://api.github.com/repos/yhuai/spark-sql-perf/stargazers","contributors_url":"https://api.github.com/repos/yhuai/spark-sql-perf/contributors","subscribers_url":"https://api.github.com/repos/yhuai/spark-sql-perf/subscribers","subscription_url":"https://api.github.com/repos/yhuai/spark-sql-perf/subscription","commits_url":"https://api.github.com/repos/yhuai/spark-sql-perf/commits{/sha}","git_commits_url":"https://api.github.com/repos/yhuai/spark-sql-perf/git/commits{/sha}","comments_url":"https://api.github.com/repos/yhuai/spark-sql-perf/comments{/number}","issue_comment_url":"https://api.github.com/repos/yhuai/spark-sql-perf/issues/comments{/number}","contents_url":"https://api.github.com/repos/yhuai/spark-sql-perf/contents/{+path}","compare_url":"https://api.github.com/repos/yhuai/spark-sql-perf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yhuai/spark-sql-perf/merges","archive_url":"https://api.github.com/repos/yhuai/spark-sql-perf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yhuai/spark-sql-perf/downloads","issues_url":"https://api.github.com/repos/yhuai/spark-sql-perf/issues{/number}","pulls_url":"https://api.github.com/repos/yhuai/spark-sql-perf/pulls{/number}","milestones_url":"https://api.github.com/repos/yhuai/spark-sql-perf/milestones{/number}","notifications_url":"https://api.github.com/repos/yhuai/spark-sql-perf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yhuai/spark-sql-perf/labels{/name}","releases_url":"https://api.github.com/repos/yhuai/spark-sql-perf/releases{/id}","created_at":"2015-05-07T17:57:12Z","updated_at":"2015-05-07T17:57:12Z","pushed_at":"2015-08-20T23:19:17Z","git_url":"git://github.com/yhuai/spark-sql-perf.git","ssh_url":"git@github.com:yhuai/spark-sql-perf.git","clone_url":"https://github.com/yhuai/spark-sql-perf.git","svn_url":"https://github.com/yhuai/spark-sql-perf","homepage":null,"size":166,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"databricks:master","ref":"master","sha":"249157f6a677bcf02b8f4e79e65352f3a02c5774","user":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"repo":{"id":34020308,"name":"spark-sql-perf","full_name":"databricks/spark-sql-perf","owner":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/databricks/spark-sql-perf","description":"","fork":false,"url":"https://api.github.com/repos/databricks/spark-sql-perf","forks_url":"https://api.github.com/repos/databricks/spark-sql-perf/forks","keys_url":"https://api.github.com/repos/databricks/spark-sql-perf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/databricks/spark-sql-perf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/databricks/spark-sql-perf/teams","hooks_url":"https://api.github.com/repos/databricks/spark-sql-perf/hooks","issue_events_url":"https://api.github.com/repos/databricks/spark-sql-perf/issues/events{/number}","events_url":"https://api.github.com/repos/databricks/spark-sql-perf/events","assignees_url":"https://api.github.com/repos/databricks/spark-sql-perf/assignees{/user}","branches_url":"https://api.github.com/repos/databricks/spark-sql-perf/branches{/branch}","tags_url":"https://api.github.com/repos/databricks/spark-sql-perf/tags","blobs_url":"https://api.github.com/repos/databricks/spark-sql-perf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/databricks/spark-sql-perf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/databricks/spark-sql-perf/git/refs{/sha}","trees_url":"https://api.github.com/repos/databricks/spark-sql-perf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/databricks/spark-sql-perf/statuses/{sha}","languages_url":"https://api.github.com/repos/databricks/spark-sql-perf/languages","stargazers_url":"https://api.github.com/repos/databricks/spark-sql-perf/stargazers","contributors_url":"https://api.github.com/repos/databricks/spark-sql-perf/contributors","subscribers_url":"https://api.github.com/repos/databricks/spark-sql-perf/subscribers","subscription_url":"https://api.github.com/repos/databricks/spark-sql-perf/subscription","commits_url":"https://api.github.com/repos/databricks/spark-sql-perf/commits{/sha}","git_commits_url":"https://api.github.com/repos/databricks/spark-sql-perf/git/commits{/sha}","comments_url":"https://api.github.com/repos/databricks/spark-sql-perf/comments{/number}","issue_comment_url":"https://api.github.com/repos/databricks/spark-sql-perf/issues/comments{/number}","contents_url":"https://api.github.com/repos/databricks/spark-sql-perf/contents/{+path}","compare_url":"https://api.github.com/repos/databricks/spark-sql-perf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/databricks/spark-sql-perf/merges","archive_url":"https://api.github.com/repos/databricks/spark-sql-perf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/databricks/spark-sql-perf/downloads","issues_url":"https://api.github.com/repos/databricks/spark-sql-perf/issues{/number}","pulls_url":"https://api.github.com/repos/databricks/spark-sql-perf/pulls{/number}","milestones_url":"https://api.github.com/repos/databricks/spark-sql-perf/milestones{/number}","notifications_url":"https://api.github.com/repos/databricks/spark-sql-perf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/databricks/spark-sql-perf/labels{/name}","releases_url":"https://api.github.com/repos/databricks/spark-sql-perf/releases{/id}","created_at":"2015-04-15T21:45:41Z","updated_at":"2015-08-18T05:57:16Z","pushed_at":"2015-08-20T23:19:18Z","git_url":"git://github.com/databricks/spark-sql-perf.git","ssh_url":"git@github.com:databricks/spark-sql-perf.git","clone_url":"https://github.com/databricks/spark-sql-perf.git","svn_url":"https://github.com/databricks/spark-sql-perf","homepage":null,"size":254,"stargazers_count":13,"watchers_count":13,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":3,"forks":13,"open_issues":3,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9"},"html":{"href":"https://github.com/databricks/spark-sql-perf/pull/9"},"issue":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/issues/9"},"comments":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/databricks/spark-sql-perf/statuses/7d0b6d78b584b78830e80590af8756392a08b066"}}}}