feat(bindings): temporal position predicates — temporal_* named aliases#74
Closed
estebanzimanyi wants to merge 1 commit intomainfrom
Closed
feat(bindings): temporal position predicates — temporal_* named aliases#74estebanzimanyi wants to merge 1 commit intomainfrom
estebanzimanyi wants to merge 1 commit intomainfrom
Conversation
Closes the user-facing tail of temporal/034_temporal_posops: Time axis (named aliases for the existing `before`/`after`/ `overbefore`/`overafter` named forms; the operator tokens `<<#`, `#>>`, `&<#`, `#&>` are unreachable in DuckDB): - temporal_before / temporal_after - temporal_overbefore / temporal_overafter Coverage: temporal × temporal (every base-type pair) and (temporal × tstzspan, tstzspan × temporal). Numeric axis (named aliases for the existing `<<`/`>>`/`&<`/`&>` operators on tnumber surface): - temporal_left / temporal_right - temporal_overleft / temporal_overright Coverage: tnumber × numspan / numspan × tnumber, tnumber × tbox / tbox × tnumber, tnumber × tnumber. A REG_POS4 macro factors out the 4-name × 4-handler block. Test: test/sql/parity/034_temporal_posops.test (10 assertions covering time-axis aliases, numeric-axis aliases on numspan/tbox/tnumber, and operator-vs-named equivalence). Full suite: 762 / 14 cases under TZ=UTC. Files also gain a trailing newline at EOF.
This was referenced Apr 30, 2026
Member
Author
|
Superseded by the consolidated PR branch |
3 tasks
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.
Closes the user-facing tail of `temporal/034_temporal_posops` (was 0%; this brings the user-visible surface to ~100%).
New SQL surface
Time axis
Aliases for the existing `before` / `after` / `overbefore` / `overafter` named forms (the underlying MobilityDB operator tokens `<<#`, `#>>`, `&<#`, `#&>` are unreachable in DuckDB's parser):
Coverage:
Numeric axis
Aliases for the existing `<<` / `>>` / `&<` / `&>` operators on the tnumber surface:
Coverage:
A small `REG_POS4` macro factors out the 4-name × 4-handler block, mirroring the `REG_TOP4` macro used in PR #72 for boxops.
Tests
Coverage delta
Per the audit in PR #66:
Test plan