Repository: spark Updated Branches: refs/heads/master 2b550a521 -> 8f7308f9c
[SQL] [MINOR] Fixes a minor Java example error in SQL programming guide Author: Cheng Lian <l...@databricks.com> Closes #6749 from liancheng/java-sample-fix and squashes the following commits: 5b44585 [Cheng Lian] Fixes a minor Java example error in SQL programming guide Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8f7308f9 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8f7308f9 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8f7308f9 Branch: refs/heads/master Commit: 8f7308f9c49805b9486aaae5f60e4481e8ba24e8 Parents: 2b550a5 Author: Cheng Lian <l...@databricks.com> Authored: Wed Jun 10 11:48:14 2015 -0700 Committer: Reynold Xin <r...@databricks.com> Committed: Wed Jun 10 11:48:14 2015 -0700 ---------------------------------------------------------------------- docs/sql-programming-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/8f7308f9/docs/sql-programming-guide.md ---------------------------------------------------------------------- diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 40e33f7..c5ab074 100644 --- a/docs/sql-programming-guide.md +++ b/docs/sql-programming-guide.md @@ -1479,7 +1479,7 @@ expressed in HiveQL. {% highlight java %} // sc is an existing JavaSparkContext. -HiveContext sqlContext = new org.apache.spark.sql.hive.HiveContext(sc); +HiveContext sqlContext = new org.apache.spark.sql.hive.HiveContext(sc.sc); sqlContext.sql("CREATE TABLE IF NOT EXISTS src (key INT, value STRING)"); sqlContext.sql("LOAD DATA LOCAL INPATH 'examples/src/main/resources/kv1.txt' INTO TABLE src"); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org