Ruihang Xia
0e2fd8e2bd
feat: rewrite json_encode_path to geo_path using compound type ( #5640 )
...
* function impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tune type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and suggestions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-03-04 05:10:12 +00:00
Ruihang Xia
76083892cd
feat: support UNNEST ( #5580 )
...
* feat: support UNNEST
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-21 04:53:56 +00:00
Lei, HUANG
5d20acca44
fix: round euclidean result in sqlness ( #4956 )
2024-11-07 02:29:49 +00:00
Ning Sun
a8b426aebe
feat: add more geo functions ( #4888 )
...
* chore: add type conversion for array types
* feat: add h3_cells_contains
* refactor: resolve lint issues
* feat: add sphere distance function
* feat: euclidean distance between h3 centroids
* test: round float number
* feat: add more geospatial functions
* test: add tests for geometry functions
* refactor: move wkt function to dedicated module
* feat: add st_area
* refactor: only allow sphere distance between points
2024-11-05 03:44:25 +00:00
Ning Sun
bb8b54b5d3
feat: add some s2 geo functions ( #4823 )
...
* feat: add first batch of s2 functions
* refactor: update reusable code from main
* test: add sqlness tests for s2
* feat: add tostring function for s2
* Update src/common/function/src/scalars/geo/s2.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* Apply suggestions from code review
* one more change
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-10-15 06:47:29 +00:00
Ning Sun
aaa9b32908
feat: add more h3 functions ( #4770 )
...
* feat: add more h3 grid functions
* feat: add more traversal functions
* refactor: update some function definitions
* style: format
* refactor: avoid creating slice in nested loop
* feat: ensure column number and length
* refactor: fix lint warnings
* refactor: merge main
* Apply suggestions from code review
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
* Update src/common/function/src/scalars/geo/h3.rs
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
* style: format
---------
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2024-10-11 17:57:54 +00:00
Ning Sun
19918928c5
feat: add function to aggregate path into a geojson path ( #4798 )
...
* feat: add geojson function to aggregate paths
* test: add sqlness results
* test: add sqlness
* refactor: corrected to aggregation function
* chore: update comments
* fix: make linter happy again
* refactor: rename to remove `geo` from `geojson` function name
The return type is not geojson at all. It's just compatible with geojson's
coordinates part and superset's deckgl path plugin.
2024-10-09 02:38:44 +00:00
Ning Sun
0f99218386
feat: list/array/timezone support for postgres output ( #4727 )
...
* feat: list/array support for postgres output
* fix: implement time zone support for postgrsql
* feat: add a geohash function that returns array
* fix: typo
* fix: lint warnings
* test: add sqlness test
* refactor: check resolution range before convert value
* fix: test result for sqlness
* feat: upgrade pgwire apis
2024-09-22 02:39:38 +00:00
Ning Sun
75c6fad1a3
feat: add more h3 scalar functions ( #4707 )
...
* feat: add more h3 scalar functions
* chore: comment up
2024-09-20 04:19:50 +00:00
Ning Sun
e476e36647
feat: add geohash and h3 as built-in functions ( #4656 )
...
* feat: add built-in functions h3 and geohash
* tests: add sqlness tests for geo functions
* doc: correct h3 comment
* fix: lint error
* fix: toml format
* refactor: address review comments
* test: add more sqlness cases
* Apply suggestions from code review
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-05 04:42:29 +00:00