Github user zsxwing commented on the pull request:
https://github.com/apache/spark/pull/7774#issuecomment-127286960
Finished the visualization work. This is a screenshot

And the codes:
```
org.apache.commons.io.FileUtils.deleteDirectory(new
java.io.File("people.parquet"))
val df =
sqlContext.read.format("json").load("examples/src/main/resources/people.json")
df.select('name, 'age).write.format("parquet").save("people.parquet")
val p = sqlContext.read.parquet("people.parquet")
val p1 = p.where('age > 0).select('name)
val p2 =
sqlContext.read.format("json").load("examples/src/main/resources/people.json")
p1.join(p2.limit(5), "name").join(p2.limit(5), "name").collect()
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]