Skip to content

Commit

Permalink
Fix typo in Spark SQL docs.
Browse files Browse the repository at this point in the history
Author: Andy Konwinski <andykonwinski@gmail.com>

Closes apache#3611 from andyk/patch-3 and squashes the following commits:

7bab333 [Andy Konwinski] Fix typo in Spark SQL docs.
  • Loading branch information
andyk authored and JoshRosen committed Dec 5, 2014
1 parent ddfc09c commit 15cf3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sql-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ performed on JSON files.
from pyspark.sql import SQLContext, Row
sqlContext = SQLContext(sc)

# Load a text file and convert each line to a dictionary.
# Load a text file and convert each line to a Row.
lines = sc.textFile("examples/src/main/resources/people.txt")
parts = lines.map(lambda l: l.split(","))
people = parts.map(lambda p: Row(name=p[0], age=int(p[1])))
Expand Down

0 comments on commit 15cf3b0

Please sign in to comment.