Skip to content

Add the set-set spatial-join UDF family#192

Open
estebanzimanyi wants to merge 1 commit into
fix/bump-meos-pinfrom
feat/setset-spatial-join-udfs
Open

Add the set-set spatial-join UDF family#192
estebanzimanyi wants to merge 1 commit into
fix/bump-meos-pinfrom
feat/setset-spatial-join-udfs

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

Expose eDwithinPairs, tDwithinPairs and aDisjointPairs as set-returning functions over tgeompoint[] and tgeometry[], wrapping the MEOS edwithin_tgeoarr_tgeoarr / tdwithin_tgeoarr_tgeoarr / adisjoint_tgeoarr_tgeoarr kernel. Each returns the qualifying (i, j) index pairs into the input arrays (1-based, matching DuckDB list indexing); tDwithinPairs also returns the per-pair tstzspanset of when the within-distance relationship holds. Stacks on the pinned-MEOS foundation that carries the kernel symbols.

@estebanzimanyi estebanzimanyi force-pushed the feat/setset-spatial-join-udfs branch from 2424e69 to f9955aa Compare June 5, 2026 15:30
@estebanzimanyi estebanzimanyi force-pushed the feat/setset-spatial-join-udfs branch from f9955aa to 61c38bf Compare June 5, 2026 17:15
@estebanzimanyi estebanzimanyi force-pushed the feat/setset-spatial-join-udfs branch 2 times, most recently from 4efabd8 to 9ec4d26 Compare June 6, 2026 04:38
@estebanzimanyi estebanzimanyi force-pushed the fix/bump-meos-pin branch 2 times, most recently from 74ea89f to e12394e Compare June 6, 2026 06:10
@estebanzimanyi estebanzimanyi force-pushed the feat/setset-spatial-join-udfs branch from 9ec4d26 to e346219 Compare June 6, 2026 06:10
@estebanzimanyi estebanzimanyi force-pushed the feat/setset-spatial-join-udfs branch 2 times, most recently from 6593d41 to 7ee9c75 Compare June 6, 2026 07:15
@estebanzimanyi estebanzimanyi force-pushed the feat/setset-spatial-join-udfs branch from 7ee9c75 to 8f9b225 Compare June 6, 2026 23:45
Expose eDwithinPairs, tDwithinPairs and aDisjointPairs as set-returning
functions and minDistance(arr, arr) as a scalar reduction over
tgeompoint[] and tgeometry[], wrapping the MEOS edwithin_tgeoarr_tgeoarr /
tdwithin_tgeoarr_tgeoarr / adisjoint_tgeoarr_tgeoarr /
mindistance_tgeoarr_tgeoarr kernel. The Pairs functions return the
qualifying (i, j) index pairs into the input arrays; tDwithinPairs also
returns the per-pair tstzspanset of when the within-distance relationship
holds; minDistance returns the exact set-set spatial minimum distance.
@estebanzimanyi estebanzimanyi force-pushed the feat/setset-spatial-join-udfs branch from 8f9b225 to 633e18f Compare June 7, 2026 10:58
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.

1 participant