feat(bindings): tnumber × {numspan, tbox} topological predicates#37
Closed
estebanzimanyi wants to merge 1 commit into
Closed
feat(bindings): tnumber × {numspan, tbox} topological predicates#37estebanzimanyi wants to merge 1 commit into
estebanzimanyi wants to merge 1 commit into
Conversation
Adds 32 ScalarFunction registrations for the tnumber-vs-box
topological surface, backed by 16 wrapper functions:
4 ops (@>, <@, &&, -|-) × 8 type-pair shapes:
tnumber × numspan, numspan × tnumber (intspan↔tint, floatspan↔tfloat)
tnumber × tbox, tbox × tnumber (both base types)
MEOS bindings (16 total):
contains/contained/overlaps/adjacent_tnumber_numspan
contains/contained/overlaps/adjacent_numspan_tnumber
contains/contained/overlaps/adjacent_tnumber_tbox
contains/contained/overlaps/adjacent_tbox_tnumber
Two new templated helpers added (TempBoxBoolPred, BoxTempBoolPred)
for blob-as-fixed-size-struct (Span / TBox) handling.
Smoke test:
SELECT tint '[1@01-01, 5@01-05]' @> intspan '[2, 4]'; -- true
SELECT intspan '[1, 10]' @> tint '[2@01-01, 4@01-05]'; -- true
SELECT tfloat '[1@01-01, 5@01-05]' && floatspan '[3, 8]'; -- true
SELECT tint '[1@01-01, 5@01-05]' -|- intspan '[6, 10]'; -- true
SELECT tint '[1@01-01, 10@01-10]' @> tbox 'TBOXINT XT([2,5],[01-02,01-05])'; -- true
Stacked on PR #36 (temporal similarity).
Full suite passes (747 assertions, 13 test cases).
This was referenced Apr 25, 2026
Member
Author
|
Consolidated into #40 (tnumber × {numspan, tbox} bounding-box predicates — topo + position combined). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 32 ScalarFunction registrations for the tnumber-vs-box topological surface, backed by 16 wrapper functions:
@>,<@,&&, `-@>,<@,&&, `-MEOS bindings (16)
contains/contained/overlaps/adjacent_tnumber_numspan+_numspan_tnumber+_tnumber_tbox+_tbox_tnumber— all available in MEOS public API.Two new templated helpers added (
TempBoxBoolPred,BoxTempBoolPred) for handling blobs-as-fixed-size-struct (Span / TBox).Smoke test
Test plan
make releasethenTZ=UTC ./build/release/test/unittest "<proj>/test/*"— full suite passes.032_temporal_topops.testskip block fully unwraps for the tnumber-numspan / tnumber-tbox surface.Dependencies
Stacked on PR #36 (temporal similarity). Merge order: #27 → #29 → #30 → #31 → #32 → #33 → #34 → #35 → #36 → this.