Skip to content

Commit

Permalink
[SQL] [MINOR] Fixes a minor Java example error in SQL programming guide
Browse files Browse the repository at this point in the history
Author: Cheng Lian <lian@databricks.com>

Closes apache#6749 from liancheng/java-sample-fix and squashes the following commits:

5b44585 [Cheng Lian] Fixes a minor Java example error in SQL programming guide
  • Loading branch information
liancheng authored and rxin committed Jun 10, 2015
1 parent 2b550a5 commit 8f7308f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sql-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8f7308f

Please sign in to comment.