Skip to content

Make the comparison families consistent camelCase (tempEq/everEq/alwaysEq)#19

Open
estebanzimanyi wants to merge 1 commit into
MobilityDB:masterfrom
estebanzimanyi:feat/portable-aliases-comparison-families
Open

Make the comparison families consistent camelCase (tempEq/everEq/alwaysEq)#19
estebanzimanyi wants to merge 1 commit into
MobilityDB:masterfrom
estebanzimanyi:feat/portable-aliases-comparison-families

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The three comparison families now share one camelCase shape <prefix>{Eq,Ne,Lt,Le,Gt,Ge}: temporal #=tempEq…, ever ?=everEq…, always %=alwaysEq….

Previously #= was lowercase teq/tne…, and ever/always were under alreadyCanonical (left as snake ever_*/always_*) — i.e. no portable bare name at all, violating the contract's own 100%-parity goal and leaving the th3 prefilter predicate without a portable name. Pairs with MobilityDB#1075's generator (OP_TO_NAME) so every binding regenerates identical names.

The temporal/ever/always comparison operators take a one-letter prefix —
t (temporal), e (ever), a (always) — over the spelled-out temp/ever/always,
matching the operator-family abbreviation the bindings already use (eIntersects
is the ever- form) and the MEOS C prefixes (teq_/eeq_/aeq_). So:

  #= #<> #< #<= #> #>=   ->  tEq tNe tLt tLe tGt tGe
  ?= ?<> ?< ?<= ?> ?>=   ->  eEq eNe eLt eLe eGt eGe
  %= %<> %< %<= %> %>=   ->  aEq aNe aLt aLe aGt aGe

Also spell the distance bare name tDistance (camelCase), matching the canonical
tgeo @sqlfn spelling, so the portable dialect and the catalog agree on one
case-sensitive name (a binding engine that folds case otherwise shadows one
spelling with the other).
@estebanzimanyi estebanzimanyi force-pushed the feat/portable-aliases-comparison-families branch from 6aaec3b to 4b895d7 Compare June 23, 2026 08:46
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