Skip to content

Test for "Timestamp out of range" bug - #8547

Closed
pnthao wants to merge 1 commit into
timescale:mainfrom
pnthao:thao/cagg-timestamp-out-of-range-tests
Closed

pnthao wants to merge 1 commit into
timescale:mainfrom
pnthao:thao/cagg-timestamp-out-of-range-tests

Conversation

@pnthao

@pnthao pnthao commented Aug 27, 2025 •

Copy link
Copy Markdown
Member

The key for the reproducer is a preceding insert and refresh that results in a row in the materialization log of
[-infinity, CAGG_INVALIDATION_WRONG_GREATEST_VALUE]. Then a following incremental refresh with start-offset = NULL would cause the issue before the fix (#8476).

Note that the fix didn't remove the row of [-infinity, CAGG_INVALIDATION_WRONG_GREATEST_VALUE], which looks like a bug caused by the use of -infinity and min_ts, making the range splitting logic think that there is still a range of [-infinity, min_ts -1] outside of the current refresh window of (min_ts, some_ts_value).
Variable window does not have this row in its materialization invalidation log because we use -infinity as the start_range for the refresh window.

Disable-check: force-changelog-file

The key is a preceding insert and refresh that results in a row in the
materialization log of
[-infinity, CAGG_INVALIDATION_WRONG_GREATEST_VALUE].
Then a following incremental refresh with start-offset = NULL would
cause the issue before the fix.
@pnthao pnthao self-assigned this Aug 27, 2025
@codecov

codecov Bot commented Aug 27, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.46%. Comparing base (8d9c80e) to head (eb06b0f).
⚠️ Report is 302 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8547      +/-   ##
==========================================
+ Coverage   82.38%   82.46%   +0.08%     
==========================================
  Files         248      248              
  Lines       47606    47577      -29     
  Branches    12092    12088       -4     
==========================================
+ Hits        39220    39236      +16     
- Misses       3497     3506       +9     
+ Partials     4889     4835      -54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to lack of activity. This pull request will be closed in 30 days.

@github-actions

Copy link
Copy Markdown

We are closing this pull request due to lack of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants