Skip to content
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

[SEDONA-663] Support spark connect python api #1639

Merged
merged 27 commits into from
Oct 15, 2024

Conversation

sebbegg
Copy link
Contributor

@sebbegg sebbegg commented Oct 14, 2024

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

This PR enables the python dataframe api to be used in spark-connect sessions. See #1619 for the current status.

How was this patch tested?

  • Ran tests/sql/test_dataframe_api.py locally against a (dockerized) spark connect session using sedona 1.6.1.
  • Successfully ran the python build workflow for spark 3.5

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the documentation.

Sebastian Eckweiler ([email protected]), Mercedes-Benz AG on behalf of MBition GmbH (More Info)

python/sedona/sql/dataframe_api.py Outdated Show resolved Hide resolved
python/sedona/spark/SedonaContext.py Outdated Show resolved Hide resolved
.github/workflows/python.yml Outdated Show resolved Hide resolved
python/sedona/sql/dataframe_api.py Outdated Show resolved Hide resolved
python/sedona/sql/dataframe_api.py Outdated Show resolved Hide resolved
@sebbegg
Copy link
Contributor Author

sebbegg commented Oct 15, 2024

Switched to use UnresolvedFunction instead of CallFunction which is only available for spark >= 3.5.
UnresolvedFunction seems "stable" in that it exists in spark >= 3.4, including the 4.0 preview releases.

@jiayuasu jiayuasu added this to the sedona-1.7.0 milestone Oct 15, 2024
@jiayuasu jiayuasu linked an issue Oct 15, 2024 that may be closed by this pull request
Copy link
Member

@jiayuasu jiayuasu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Thank you!

@jiayuasu jiayuasu merged commit 44984f1 into apache:master Oct 15, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sedona python API on databricks unity / spark connect
3 participants