{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13086","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13086/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13086/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13086/events","html_url":"https://github.com/apache/spark/pull/13086","id":154608078,"number":13086,"title":"[TRIVIAL][Doc] SparkSession class doc example correction","user":{"login":"tejasapatil","id":3230057,"avatar_url":"https://avatars.githubusercontent.com/u/3230057?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasapatil","html_url":"https://github.com/tejasapatil","followers_url":"https://api.github.com/users/tejasapatil/followers","following_url":"https://api.github.com/users/tejasapatil/following{/other_user}","gists_url":"https://api.github.com/users/tejasapatil/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasapatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasapatil/subscriptions","organizations_url":"https://api.github.com/users/tejasapatil/orgs","repos_url":"https://api.github.com/users/tejasapatil/repos","events_url":"https://api.github.com/users/tejasapatil/events{/privacy}","received_events_url":"https://api.github.com/users/tejasapatil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-13T00:08:07Z","updated_at":"2016-05-13T15:42:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13086","html_url":"https://github.com/apache/spark/pull/13086","diff_url":"https://github.com/apache/spark/pull/13086.diff","patch_url":"https://github.com/apache/spark/pull/13086.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nWas trying out `SparkSession` for the first time and the given class doc (when copied as is) did not work over Spark shell:\r\n\r\n```\r\nscala> import org.apache.spark.sql._\r\nimport org.apache.spark.sql._\r\n\r\nscala> SparkSession.builder().master(\"local\").appName(\"Word Count\").getOrCreate()\r\n<console>:27: error: org.apache.spark.sql.SparkSession.Builder does not take parameters\r\n       SparkSession.builder().master(\"local\").appName(\"Word Count\").getOrCreate()\r\n```\r\n\r\nPS: I am using latest master\r\n\r\n## How was this patch tested?\r\n\r\n```\r\nscala> SparkSession.builder.master(\"local\").appName(\"Word Count\").getOrCreate()\r\nres0: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession@c3719e5\r\n```"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/219080926","html_url":"https://github.com/apache/spark/pull/13086#issuecomment-219080926","issue_url":"https://api.github.com/repos/apache/spark/issues/13086","id":219080926,"user":{"login":"tejasapatil","id":3230057,"avatar_url":"https://avatars.githubusercontent.com/u/3230057?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasapatil","html_url":"https://github.com/tejasapatil","followers_url":"https://api.github.com/users/tejasapatil/followers","following_url":"https://api.github.com/users/tejasapatil/following{/other_user}","gists_url":"https://api.github.com/users/tejasapatil/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasapatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasapatil/subscriptions","organizations_url":"https://api.github.com/users/tejasapatil/orgs","repos_url":"https://api.github.com/users/tejasapatil/repos","events_url":"https://api.github.com/users/tejasapatil/events{/privacy}","received_events_url":"https://api.github.com/users/tejasapatil/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T15:42:11Z","updated_at":"2016-05-13T15:42:11Z","body":"@rxin : Thanks for review. I have made the suggested change.\r\n\r\n```\r\nscala> import org.apache.spark.sql._\r\nimport org.apache.spark.sql._\r\n\r\nscala> SparkSession.builder().master(\"local\").appName(\"Word Count\").getOrCreate()\r\nres0: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession@65c17e38\r\n\r\nscala> SparkSession.builder.master(\"local\").appName(\"Word Count\").getOrCreate()\r\nres1: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession@65c17e38\r\n```"}}