summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMatei Alexandru Zaharia <matei@apache.org>2015-07-26 19:11:45 +0000
committerMatei Alexandru Zaharia <matei@apache.org>2015-07-26 19:11:45 +0000
commit682afacd925931870fb429b8f7e5b22f18bf8446 (patch)
treed6ff8a13b6cedb6e6bcdec3c164ab3ce074cbe4d /sql
parent6b74391a87abf4907479f933e7bd8ffaf5e045b6 (diff)
downloadspark-website-682afacd925931870fb429b8f7e5b22f18bf8446.tar.gz
spark-website-682afacd925931870fb429b8f7e5b22f18bf8446.tar.bz2
spark-website-682afacd925931870fb429b8f7e5b22f18bf8446.zip
Fix Python
Diffstat (limited to 'sql')
-rw-r--r--sql/index.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/index.md b/sql/index.md
index e742f5f16..890da322e 100644
--- a/sql/index.md
+++ b/sql/index.md
@@ -26,7 +26,7 @@ subproject: SQL
<div style="margin-top: 15px; text-align: left; display: inline-block;">
<div class="code">
- context = new <span class="sparkop">HiveContext</span>(sc)<br/>
+ context = <span class="sparkop">HiveContext</span>(sc)<br/>
results = context.<span class="sparkop">sql</span>(<br/>&nbsp;&nbsp;<span class="closure">"SELECT * FROM people"</span>)<br/>
names = results.<span class="sparkop">map</span>(<span class="closure">lambda p: p.name</span>)</br>
</div>