You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2015/06/10 20:48:16 UTC

spark git commit: [SQL] [MINOR] Fixes a minor Java example error in SQL programming guide

Repository: spark
Updated Branches:
  refs/heads/master 2b550a521 -> 8f7308f9c


[SQL] [MINOR] Fixes a minor Java example error in SQL programming guide

Author: Cheng Lian <li...@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 <li...@databricks.com>
Authored: Wed Jun 10 11:48:14 2015 -0700
Committer: Reynold Xin <rx...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org