diff options
author | Cheng Lian <lian@databricks.com> | 2015-06-10 11:48:14 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-06-10 11:48:14 -0700 |
commit | 8f7308f9c49805b9486aaae5f60e4481e8ba24e8 (patch) | |
tree | 639dc30cef794539fb1397eada106583e27e5c30 | |
parent | 2b550a521e45e1dbca2cca40ddd94e20c013831c (diff) | |
download | spark-8f7308f9c49805b9486aaae5f60e4481e8ba24e8.tar.gz spark-8f7308f9c49805b9486aaae5f60e4481e8ba24e8.tar.bz2 spark-8f7308f9c49805b9486aaae5f60e4481e8ba24e8.zip |
[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
-rw-r--r-- | docs/sql-programming-guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 40e33f757d..c5ab074e44 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"); |