Skip to content

Fix abort on inverted time travel query#890

Merged
alancleary merged 1 commit intomainfrom
alancleary/fix-inverted-ranges
May 6, 2026
Merged

Fix abort on inverted time travel query#890
alancleary merged 1 commit intomainfrom
alancleary/fix-inverted-ranges

Conversation

@alancleary
Copy link
Copy Markdown
Member

This is a small PR that fixes a recurring CI failure.

Time-travel queries are supposed to return an empty result set when the time range is empty. This extends to inverted ranges as well, i.e. an empty result set is always returned when the start time is after the end time. However, the underlying TileDB query actually aborts when an inverted range is given. This was usually missed by CI because the test was so small that the start and end wall clock times used were the same, resulting in the expected behaviour. This commit fixes the issue by short circuiting and skipping the TileDB query altogether when the range is inverted.

Time-travel queries are supposed to return an empty result set when the time range is empty. This extends to inverted ranges as well, i.e. an empty result set is always returned when the start time is after the end time. However, the underlying TileDB query actually aborts when an inverted range is given. This was usually missed by CI because the test was so small that the start and end wall clock times used were the same, resulting in the expected behaviour. This commit fixes the issue by short circuiting and skipping the TileDB query altogether when the range is inverted.
@alancleary alancleary merged commit 196affc into main May 6, 2026
11 checks passed
@alancleary alancleary deleted the alancleary/fix-inverted-ranges branch May 6, 2026 20:07
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.

2 participants