Skip to content

Conversation

ddelemeny
Copy link
Collaborator

When looking backwards on a searchAfter request, createContextTimerange creates a range which does not contain the searchAfter target timestamp row.timeEpochNs because of truncated precision.

This PR does the following :

  • offset the higher bound by 1 Ms to make sure that the target timestamp is within the bounds after truncation.
  • add a test to check that scenario
@ddelemeny ddelemeny force-pushed the ddelemeny/fix-context-range branch 2 times, most recently from 57ff6ae to 02c9a22 Compare April 25, 2024 19:24
@ddelemeny ddelemeny force-pushed the ddelemeny/fix-context-range branch from 02c9a22 to a8d8cab Compare April 25, 2024 19:32
@ddelemeny ddelemeny merged commit 8afe6fb into main Apr 25, 2024
@ddelemeny ddelemeny deleted the ddelemeny/fix-context-range branch May 20, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants