Skip to content

Adopt minDistance for the portable Q5 cross-platform queries#40

Merged
estebanzimanyi merged 1 commit into
masterfrom
fix/portable-q5-canonical-mindistance
Jun 7, 2026
Merged

Adopt minDistance for the portable Q5 cross-platform queries#40
estebanzimanyi merged 1 commit into
masterfrom
fix/portable-q5-canonical-mindistance

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

Q5 in the portable and th3index-portable query sets aggregates each licence group's trips into a tgeompoint array and calls minDistance(tgeompoint[], tgeompoint[]) for the exact set-set spatial minimum distance, matching the PG-native query set. The kernel uses each trip's STBox as a sound lower-bound prefilter and computes the per-pair distance with liblwgeom's segment-pair sweep, so the answer is identical to the aggregated geometry-collection form across PostgreSQL/MobilityDB, DuckDB/MobilityDuck and Spark/MobilitySpark.

Q5 in the portable and th3index-portable query sets aggregates each
licence group's trips into a tgeompoint array and calls
minDistance(tgeompoint[], tgeompoint[]) for the exact set-set spatial
minimum distance, matching the PG-native query set.  The kernel uses each
trip's STBox as a sound lower-bound prefilter and computes the per-pair
distance with liblwgeom's segment-pair sweep, so the answer is identical
to the aggregated geometry-collection form across PostgreSQL/MobilityDB,
DuckDB/MobilityDuck and Spark/MobilitySpark.
@estebanzimanyi estebanzimanyi merged commit 28c1929 into master Jun 7, 2026
2 checks passed
@estebanzimanyi estebanzimanyi deleted the fix/portable-q5-canonical-mindistance branch June 7, 2026 11:06
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