aboutsummaryrefslogtreecommitdiff
path: root/examples/src/main/python/sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/main/python/sql.py')
-rw-r--r--examples/src/main/python/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/main/python/sql.py b/examples/src/main/python/sql.py
index 5594223465..d2e895d931 100644
--- a/examples/src/main/python/sql.py
+++ b/examples/src/main/python/sql.py
@@ -69,7 +69,7 @@ if __name__ == "__main__":
# Register this DataFrame as a temporary table.
people.registerTempTable("people")
- # SQL statements can be run by using the sql methods provided by sqlContext
+ # SQL statements can be run by using the sql methods provided by `spark`
teenagers = spark.sql("SELECT name FROM people WHERE age >= 13 AND age <= 19")
for each in teenagers.collect():