Skip to content

Give each position operator its SQL names by class - #146

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:portable/position-names-by-class
Sep 14, 2026
Merged

Give each position operator its SQL names by class#146
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:portable/position-names-by-class

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

A position operator has one SQL name per class of its operands, the class
followed by the position: << is setLeft, spanLeft, spansetLeft, tboxLeft,
stboxLeft and tpcboxLeft, a temporal operand taking the class of its
bounding box (MobilityDB#2717). The portable mapping holds the sixteen
position operators in positionFamilies, each with its position, the stem
those names and the MEOS C functions share (left_set_set,
left_tspatial_tspatial). families, byOperator and byBareName carry the
25 operators that have one bare name.

attach_position_names derives the names by class from the @sqlfn tags of
the functions whose @sqlop is the operator, once the @sqlfn map is attached,
into portableAliases.positionNames: 64 names for the 16 operators over
MobilityDB master. A name that is not its class followed by the position,
or an operator that no function carries, raises.

The parity audit lists each position operator under byPosition, backed by
the MEOS family its position prefixes and reported with its SQL names by
class. The schema, the tests and the documentation cover the new section;
the documentation's family table carries the spelled-out comparison names.

A position operator has one SQL name per class of its operands, the class
followed by the position: `<<` is setLeft, spanLeft, spansetLeft, tboxLeft,
stboxLeft and tpcboxLeft, a temporal operand taking the class of its
bounding box (MobilityDB#2717). The portable mapping holds the sixteen
position operators in `positionFamilies`, each with its position, the stem
those names and the MEOS C functions share (left_set_set,
left_tspatial_tspatial). `families`, `byOperator` and `byBareName` carry the
25 operators that have one bare name.

`attach_position_names` derives the names by class from the @sqlfn tags of
the functions whose @sqlop is the operator, once the @sqlfn map is attached,
into `portableAliases.positionNames`: 64 names for the 16 operators over
MobilityDB master. A name that is not its class followed by the position,
or an operator that no function carries, raises.

The parity audit lists each position operator under `byPosition`, backed by
the MEOS family its position prefixes and reported with its SQL names by
class. The schema, the tests and the documentation cover the new section;
the documentation's family table carries the spelled-out comparison names.
@estebanzimanyi
estebanzimanyi merged commit 74f8f4b into MobilityDB:master Sep 14, 2026
3 checks passed
@estebanzimanyi
estebanzimanyi deleted the portable/position-names-by-class branch September 14, 2026 14:05
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