Skip to content

Register bbox-topological operators by their canonical SQL name#31

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:fix/sqlfn-bbox-backing-only
Jul 9, 2026
Merged

Register bbox-topological operators by their canonical SQL name#31
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:fix/sqlfn-bbox-backing-only

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The five bbox-topological operators (~= @> <@ -|- &&) are backed by shared C @sqlfn tags (same_bbox, contains_bbox, contained_bbox, overlaps_bbox, adjacent_bbox) that MobilityDB never deploys as CREATE FUNCTION — the only public SQL name is the operator's bare portable alias (same, contains, contained, overlaps, adjacent). Registering the raw _bbox tag as a UDF leaks a function MobilityDB does not expose.

The MEOS-API catalog now classifies these records with sqlfnBackingOnly: true and a publicSqlName (the bare alias). This change honors that flag in the UDF generator so the _bbox backing tag is never registered as a function; the bare alias and the operator are registered by the topology pass as before. The vendored catalog is annotated with the classification, leaving the function surface (and thus the JMEOS jar surface) unchanged.

Verified: the generator run drops same_bbox/contains_bbox/overlaps_bbox (0 registrations) while the bare same/contains/overlaps are retained, and mvn generate-sources test-compile is clean.

The five bbox-topological operators (~= @> <@ -|- &&) are backed by
shared C @sqlfn tags (same_bbox, contains_bbox, contained_bbox,
overlaps_bbox, adjacent_bbox) that MobilityDB never deploys as CREATE
FUNCTION -- the only public SQL name is the operator's bare portable
alias (same, contains, contained, overlaps, adjacent). A binding that
registers the raw _bbox tag leaks a function MobilityDB does not
expose.

The MEOS-API catalog classifies these records with sqlfnBackingOnly:
true and a publicSqlName (the bare alias). Honor that flag in the UDF
generator so the _bbox backing tag is never registered as a function;
the bare alias and the operator are registered by the topology pass as
before. Annotate the vendored catalog with the classification (surface
unchanged; JMEOS jar surface preserved).
@estebanzimanyi
estebanzimanyi merged commit 1f5c2bb into MobilityDB:main Jul 9, 2026
1 check passed
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