diff options
author | Boaz Mohar <boazmohar@gmail.com> | 2017-02-25 11:32:09 -0800 |
---|---|---|
committer | Xiao Li <gatorsmile@gmail.com> | 2017-02-25 11:32:09 -0800 |
commit | 061bcfb869fe5f64edd9ee2352fecd70665da317 (patch) | |
tree | 84e9dfa741cad10ee7fbb378ce462f5fe5c92a5e /examples/src/main/python/sql/basic.py | |
parent | 8f0511ed49a353fb0745f320a84063ced5cc1857 (diff) | |
download | spark-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/src/main/python/sql/basic.py')
-rw-r--r-- | examples/src/main/python/sql/basic.py | 3 |
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") |