aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoaz Mohar <boazmohar@gmail.com>2017-02-25 11:32:09 -0800
committerXiao Li <gatorsmile@gmail.com>2017-02-25 11:32:09 -0800
commit061bcfb869fe5f64edd9ee2352fecd70665da317 (patch)
tree84e9dfa741cad10ee7fbb378ce462f5fe5c92a5e /examples
parent8f0511ed49a353fb0745f320a84063ced5cc1857 (diff)
downloadspark-061bcfb869fe5f64edd9ee2352fecd70665da317.tar.gz
spark-061bcfb869fe5f64edd9ee2352fecd70665da317.tar.bz2
spark-061bcfb869fe5f64edd9ee2352fecd70665da317.zip
[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 <boazmohar@gmail.com> Closes #17066 from boazmohar/doc-fix.
Diffstat (limited to 'examples')
-rw-r--r--examples/src/main/python/sql/basic.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/src/main/python/sql/basic.py b/examples/src/main/python/sql/basic.py
index ebcf66995b..c07fa8f275 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")