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-545] Sedona Python DataFrame API fail due to missing commas #1371

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

jiayuasu
Copy link
Member

@jiayuasu jiayuasu commented Apr 26, 2024

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

  1. Make Python DataFrame APIs __all__ auto populate all functions in the file
  2. from sedona.spark import * will also include Python DataFrame functions

How was this patch tested?

Passed local import tests

Did this PR include necessary documentation updates?

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

@jiayuasu jiayuasu added this to the sedona-1.6.0 milestone Apr 26, 2024
@jiayuasu jiayuasu added the bug label Apr 26, 2024
@jiayuasu jiayuasu merged commit 77a9551 into master Apr 26, 2024
28 checks passed
@jiayuasu jiayuasu deleted the fix-python-import branch April 27, 2024 05:49
jiayuasu added a commit that referenced this pull request Apr 28, 2024
@@ -43,3 +43,7 @@
from sedona.raster_utils.SedonaUtils import SedonaUtils
from sedona.maps.SedonaKepler import SedonaKepler
from sedona.maps.SedonaPyDeck import SedonaPyDeck
from sedona.sql.st_aggregates import *
from sedona.sql.st_constructors import *
from sedona.sql.st_functions import *
Copy link
Member

@Kontinuation Kontinuation Jul 31, 2024

Choose a reason for hiding this comment

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

This introduces another problem: st_functions defines a function named GeometryType, it replaces the previously imported from sedona.sql.types import GeometryType. I prefer not importing the GeometryType function when from sedona.sql.st_functions import * to preserve backward compatibility.

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.

None yet

2 participants