Skip to content

Return the type the catalog declares, not the operand's own - #350

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:fix/catalog-declares-the-return
Aug 28, 2026
Merged

Return the type the catalog declares, not the operand's own#350
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:fix/catalog-declares-the-return

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

A Temporal->Temporal function answers the operand's own type only where the family is closed under the operation. MobilityDB declares centroid(tgeometry) as tgeompoint, centroid(tgeography) as tgeogpoint, minDistSimplify over a tgeography as tgeometry and over a tgeogpoint as tgeompoint, tDistance of two tints as tint, and the cell boundary as tgeography for H3 and tgeometry for quadbin, so each registration reads its return from the catalog signature carrying its own operand and arity. A shape the catalog describes with several overloads at that arity keeps the name heuristic. cellToBoundary registers with the rest of the cell-index surface, its return being what holds it back. The hand centroid and minDistSimplify registrations over the three geo types state the operand's type as the return and duplicate the generated surface, which covers those types at the declared return.

The registration set reads 5859 against 5857, six returns corrected and cellToBoundary added for both cell indexes, with nothing dropped. Nine assertions pin each corrected type; the class survives in a surface where no test asserts a return type.

A Temporal->Temporal function answers the operand's own type only where the
family is closed under the operation. MobilityDB declares centroid(tgeometry)
as tgeompoint, centroid(tgeography) as tgeogpoint, minDistSimplify over a
tgeography as tgeometry and over a tgeogpoint as tgeompoint, tDistance of two
tints as tint, and the cell boundary as tgeography for H3 and tgeometry for
quadbin, so each registration reads its return from the catalog signature
carrying its own operand and arity. A shape the catalog describes with several
overloads at that arity keeps the name heuristic.

cellToBoundary registers with the rest of the cell-index surface, the return
being what held it back. The hand centroid and minDistSimplify registrations
over the three geo types state the operand's type as the return and duplicate
the generated surface, which covers those types at the declared return.
@estebanzimanyi
estebanzimanyi merged commit 5bb6f62 into MobilityDB:main Aug 28, 2026
10 checks passed
@estebanzimanyi
estebanzimanyi deleted the fix/catalog-declares-the-return branch August 28, 2026 18:35
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