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-483] [SEDONA-491] Implement ST_IsPolygonCCW and ST_ForcePolygonCCW #1287

Merged
merged 7 commits into from
Mar 25, 2024

Conversation

furqaankhan
Copy link
Contributor

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

  • Add ST_IsPolygonCCW
  • Add ST_ForcePolygonCCW

How was this patch tested?

  • Passed new and existing tests

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation update.

@Test
public void test_ST_ForcePolygonCCW() {
registerUDFV2("ST_ForcePolygonCCW", String.class);
verifySqlSingleRes(
Copy link
Member

Choose a reason for hiding this comment

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

@furqaankhan Your TestFunctionsV2 implementation is not following the correct format. Please pay close attention to the format of other functions in the same TestFunctionsV2 file.

Copy link
Member

Choose a reason for hiding this comment

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

In short, you should use the constructor that has no sedona prefix. This kind of constructors are snowflake native constructors. See the explanation here: https://sedona.apache.org/1.5.1/tutorial/snowflake/sql/#interoperate-with-snowflake-native-functions

@jiayuasu jiayuasu merged commit d347e74 into apache:master Mar 25, 2024
37 of 49 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.

None yet

2 participants