-
Notifications
You must be signed in to change notification settings - Fork 693
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-415] Add optional parameter to ST_Transform #1069
Conversation
docs/api/sql/Function.md
Outdated
@@ -2530,7 +2530,7 @@ PROJCS["WGS 84 / Pseudo-Mercator", | |||
Format: | |||
|
|||
``` | |||
ST_Transform (A: Geometry, SourceCRS: String, TargetCRS: String, [Optional] lenientMode: Boolean) | |||
ST_Transform (A: Geometry, [Optional] SourceCRS: String, TargetCRS: String, [Optional] lenientMode: Boolean) |
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.
Please provide overloaded variants of this function. Don't just specify optional
.
python/sedona/sql/st_functions.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.
New Python DataFrame API needs to be tested.
python/tests/sql/test_function.py
Outdated
function_df = self.spark.sql( | ||
"select ST_Transform(polygondf.countyshape, 'epsg:3857', false) from polygondf" | ||
) | ||
function_df.show() |
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.
Same thing here. Do not do show
. Use assertion to check the correctness
Did you read the Contributor Guide?
Is this PR related to a JIRA ticket?
[SEDONA-XXX] my subject
.What changes were proposed in this PR?
sourceCRS
an optional parameterHow was this patch tested?
Did this PR include necessary documentation updates?