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

Add MySQL to OpenSearch Geometry data type transformation #5187

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

dinujoh
Copy link
Member

@dinujoh dinujoh commented Nov 12, 2024

Description

Add MySQL to OpenSearch Geometry data type transformation

  • Implement SpatialTypeHandler transformation for processing geometric shapes
  • Support WKT formats (Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon)

Issues Resolved

Contributes to #4561

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment on lines +33 to +39
private static final int GEOMETRY_POINT = 1;
private static final int GEOMETRY_LINESTRING = 2;
private static final int GEOMETRY_POLYGON = 3;
private static final int GEOMETRY_MULTIPOINT = 4;
private static final int GEOMETRY_MULTILINESTRING = 5;
private static final int GEOMETRY_MULTIPOLYGON= 6;
private static final int GEOMETRY_COLLECTION = 7;
Copy link
Collaborator

@oeyh oeyh Nov 13, 2024

Choose a reason for hiding this comment

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

Are we missing the Geometry type here? It's the singular form of the GeometryCollection type

Copy link
Member Author

@dinujoh dinujoh Nov 13, 2024

Choose a reason for hiding this comment

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

No, Geometry type is handled by specific type. Geometry type can have specific type for example POINT type.

@dinujoh dinujoh merged commit 1e8d9b3 into opensearch-project:main Nov 13, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants