Repository: spark
Updated Branches:
  refs/heads/master 8f0511ed4 -> 061bcfb86


[MINOR][DOCS] Fixes two problems in the SQL programing guide page

## What changes were proposed in this pull request?

Removed duplicated lines in sql python example and found a typo.

## How was this patch tested?

Searched for other typo's in the page to minimize PR's.

Author: Boaz Mohar <[email protected]>

Closes #17066 from boazmohar/doc-fix.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/061bcfb8
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/061bcfb8
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/061bcfb8

Branch: refs/heads/master
Commit: 061bcfb869fe5f64edd9ee2352fecd70665da317
Parents: 8f0511e
Author: Boaz Mohar <[email protected]>
Authored: Sat Feb 25 11:32:09 2017 -0800
Committer: Xiao Li <[email protected]>
Committed: Sat Feb 25 11:32:09 2017 -0800

----------------------------------------------------------------------
 docs/sql-programming-guide.md         | 2 +-
 examples/src/main/python/sql/basic.py | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/061bcfb8/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 235f5ec..2dd1ab6 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -1410,7 +1410,7 @@ Thrift JDBC server also supports sending thrift RPC 
messages over HTTP transport
 Use the following setting to enable HTTP mode as system property or in 
`hive-site.xml` file in `conf/`:
 
     hive.server2.transport.mode - Set this to value: http
-    hive.server2.thrift.http.port - HTTP port number fo listen on; default is 
10001
+    hive.server2.thrift.http.port - HTTP port number to listen on; default is 
10001
     hive.server2.http.endpoint - HTTP endpoint; default is cliservice
 
 To test, use beeline to connect to the JDBC/ODBC server in http mode with:

http://git-wip-us.apache.org/repos/asf/spark/blob/061bcfb8/examples/src/main/python/sql/basic.py
----------------------------------------------------------------------
diff --git a/examples/src/main/python/sql/basic.py 
b/examples/src/main/python/sql/basic.py
index ebcf669..c07fa8f 100644
--- a/examples/src/main/python/sql/basic.py
+++ b/examples/src/main/python/sql/basic.py
@@ -187,9 +187,6 @@ def programmatic_schema_example(spark):
     # Creates a temporary view using the DataFrame
     schemaPeople.createOrReplaceTempView("people")
 
-    # Creates a temporary view using the DataFrame
-    schemaPeople.createOrReplaceTempView("people")
-
     # SQL can be run over DataFrames that have been registered as a table.
     results = spark.sql("SELECT name FROM people")
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to