Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/999#discussion_r13840123
--- Diff: docs/sql-programming-guide.md ---
@@ -170,12 +191,11 @@ A schema can be applied to an existing RDD by calling
`applySchema` and providin
for the JavaBean.
{% highlight java %}
-
-JavaSparkContext ctx = ...; // An existing JavaSparkContext.
-JavaSQLContext sqlCtx = new
org.apache.spark.sql.api.java.JavaSQLContext(ctx)
+// sc is an existing JavaSparkContext.
+JavaSQLContext sqlContext = new
org.apache.spark.sql.api.java.JavaSQLContext(sc)
// Load a text file and convert each line to a JavaBean.
-JavaRDD<Person> people =
ctx.textFile("examples/src/main/resources/people.txt").map(
+JavaRDD<Person> people =
sc.textFile("examples/src/main/resources/people.txt").map(
--- End diff --
actually sorry maybe this is intentional?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---