-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 GeoJSON support. #14405
Add GeoJSON support. #14405
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14405 +/- ##
============================================
+ Coverage 61.75% 63.93% +2.18%
- Complexity 207 1570 +1363
============================================
Files 2436 2681 +245
Lines 133233 147100 +13867
Branches 20636 22568 +1932
============================================
+ Hits 82274 94047 +11773
- Misses 44911 46125 +1214
- Partials 6048 6928 +880
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Standard function documentation:
Seems |
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.
Mostly good
pinot-common/src/main/java/org/apache/pinot/common/function/TransformFunctionType.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/geospatial/transform/function/ConstructFromGeoJsonFunction.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/geospatial/transform/function/ConstructFromGeoJsonFunction.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/apache/pinot/core/geospatial/transform/function/StAsGeoJsonFunction.java
Show resolved
Hide resolved
Great job! Please help also update the pinot documentation for these new functions |
This PR adds support for GeoJSON format (see 1 & 2) via following functions:
Supported data types:
Examples:
A. Convert from WKT to GeoJSON:
returns
returns
returns
returns
B. Convert from GeoJson to WKT:
returns
POINT (1 2)
returns
MULTILINESTRING ((1 1, 5 1), (2 4, 4 4))
References: