Skip to content

Commit 7b88e6a

Browse files
lianchengrxin
authored andcommitted
[SQL] [MINOR] Fixes a minor Java example error in SQL programming guide
Author: Cheng Lian <[email protected]> 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 8f7308f) Signed-off-by: Reynold Xin <[email protected]>
1 parent a0a7f2f commit 7b88e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sql-programming-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ expressed in HiveQL.
14751475

14761476
{% highlight java %}
14771477
// sc is an existing JavaSparkContext.
1478-
HiveContext sqlContext = new org.apache.spark.sql.hive.HiveContext(sc);
1478+
HiveContext sqlContext = new org.apache.spark.sql.hive.HiveContext(sc.sc);
14791479

14801480
sqlContext.sql("CREATE TABLE IF NOT EXISTS src (key INT, value STRING)");
14811481
sqlContext.sql("LOAD DATA LOCAL INPATH 'examples/src/main/resources/kv1.txt' INTO TABLE src");

0 commit comments

Comments
 (0)