Repository: spark
Updated Branches:
  refs/heads/branch-1.4 a0a7f2f92 -> 7b88e6a1e


[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

(cherry picked from commit 8f7308f9c49805b9486aaae5f60e4481e8ba24e8)
Signed-off-by: Reynold Xin <r...@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/7b88e6a1
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/7b88e6a1
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/7b88e6a1

Branch: refs/heads/branch-1.4
Commit: 7b88e6a1e3b8f79cb41842bc21893760dc4b74e6
Parents: a0a7f2f
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:19 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/7b88e6a1/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index cde5830..17f2954 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -1475,7 +1475,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

Reply via email to