GitHub user wangmiao1981 opened a pull request:
https://github.com/apache/spark/pull/14098
[SPARK-16380][SQL][Example]:Update SQL examples and programming guide for
Python language binding
## What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
In current sql-programming-guide.md, Python examples are hard coded in the
md file.
I update the file by adding a separate SparkSQLExample.py as ml examples.
In this file, I included all working and hard-coded examples as a
self-contained application, except for Hive examples. For example,
spark.refershtable, which doesn't exist in SparkSession. We can revisit these
examples and put it in the self-contained application.
## How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration
tests, manual tests)
Manual tests:
./bin/spark-submit examples/src/main/python/SparkSQLExample.py
Build docs and check generated document including correct examples as ml
document.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangmiao1981/spark sql
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14098.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 #14098
----
----
---
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]