Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Apr 11, 2017
1 parent e358615 commit 3f60861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private static void runJsonDatasetExample(SparkSession spark) {
// +------+

// Alternatively, a DataFrame can be created for a JSON dataset represented by
// an Dataset<String> storing one JSON object per string.
// a Dataset<String> storing one JSON object per string.
List<String> jsonData = Arrays.asList(
"{\"name\":\"Yin\",\"address\":{\"city\":\"Columbus\",\"state\":\"Ohio\"}}");
Dataset<String> anotherPeopleDataset = spark.createDataset(jsonData, Encoders.STRING());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ object SQLDataSourceExample {
// +------+

// Alternatively, a DataFrame can be created for a JSON dataset represented by
// an Dataset[String] storing one JSON object per string
// a Dataset[String] storing one JSON object per string
val otherPeopleDataset = spark.createDataset(
"""{"name":"Yin","address":{"city":"Columbus","state":"Ohio"}}""" :: Nil)
val otherPeople = spark.read.json(otherPeopleDataset)
Expand Down

0 comments on commit 3f60861

Please sign in to comment.