Skip to content

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

Open
estebanzimanyi wants to merge 2 commits into
feat/parity-h3-static-prefilterfrom
feat/setset-spatial-join-udfs
Open

Add the set-set spatial-join UDF family#192
estebanzimanyi wants to merge 2 commits into
feat/parity-h3-static-prefilterfrom
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 2 times, most recently from 8f9b225 to 633e18f Compare June 7, 2026 10:58
…to 59ba0ad59c

Wire `tfloat_sin`, `tfloat_cos`, `tfloat_tan` from MEOS as `sin(tfloat)`,
`cos(tfloat)`, `tan(tfloat)` DuckDB scalar overloads, following the same
`TemporalUnary` pattern as `exp`/`ln`/`log10`.  The pin advances from
`278863520b` to `59ba0ad59c` (tag `ecosystem-pin-2026-06-11a`), which adds
these three trig kernels and the `ensure_srid_reconcile` helper.
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 633e18f to 80d2ab9 Compare June 11, 2026 04:38
@estebanzimanyi estebanzimanyi changed the base branch from fix/bump-meos-pin to feat/parity-h3-static-prefilter June 11, 2026 04:39
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