-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Python SQL Example Code #2521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python SQL Example Code #2521
Conversation
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test FAILed. |
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test FAILed. |
|
QA tests have started for PR 2521 at commit
|
examples/src/main/python/sql.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assume that this script will be run at SPARK_HOME, it will be broken if user run it at SPARK_HOME/examples/src/main/python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, should the JSON file be supplied as sys.argv[1]?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
path = os.environ['SPARK_HOME'] + "examples/src/main/resources/people.json"
|
This example only demonstrate |
|
QA tests have finished for PR 2521 at commit
|
|
Test PASSed. |
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test FAILed. |
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test FAILed. |
|
Test FAILed. |
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test FAILed. |
|
Jenkins, retest this please. |
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test PASSed. |
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test FAILed. |
|
Jenkins, retest this please. |
|
QA tests have started for PR 2521 at commit
|
|
QA tests have finished for PR 2521 at commit
|
|
Test PASSed. |
|
@davies I have made the changes you asked for. Can you verify this? |
|
@jyotiska Cool, look good to me, thanks! |
|
Thanks! I've merged this to master. |
SQL example code for Python, as shown on SQL Programming Guide