spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject spark git commit: [SQL] [MINOR] Fixes a minor Java example error in SQL programming guide
Date Wed, 10 Jun 2015 18:48:22 GMT
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 <lian@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 <rxin@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 <lian@databricks.com>
Authored: Wed Jun 10 11:48:14 2015 -0700
Committer: Reynold Xin <rxin@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message