GitHub user dongjoon-hyun opened a pull request: https://github.com/apache/spark/pull/12809
[SPARK-15031][EXAMPLE] Fix SQL Python example. ## What changes were proposed in this pull request? Currently, Python SQL example, `sql.py`, fails due to the following two lines. This issue fixes them by the following fix. ``` - people = sqlContext.jsonFile(path) + people = sqlContext.read.json(path) ... - people.registerAsTable("people") + people.registerTempTable("people") ``` ## How was this patch tested? Run `bin/spark-submit examples/src/main/python/sql.py`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dongjoon-hyun/spark SPARK-15031 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12809.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #12809 ---- commit f2087fdbd4ebd7cbb94c5f866f21011a1e4d2212 Author: Dongjoon Hyun <dongj...@apache.org> Date: 2016-04-30T07:16:01Z [SPARK-15031][EXAMPLE] Fix SQL Python example. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org