Skip to content

Consider "gap" between tokens for range query#11610

Merged
dhruvmanila merged 2 commits intodhruv/parser-phase-2from
dhruv/tokens-range-query
May 30, 2024
Merged

Consider "gap" between tokens for range query#11610
dhruvmanila merged 2 commits intodhruv/parser-phase-2from
dhruv/tokens-range-query

Conversation

@dhruvmanila
Copy link
Member

Summary

This PR updates the methods on Tokens struct to consider the "gap" between tokens. Additionally, it adds a constraint to the methods which is that the offsets shouldn't be within the token range otherwise it'll panic.

Test Plan

Add unit test cases.

@dhruvmanila dhruvmanila added the parser Related to the parser label May 30, 2024
@dhruvmanila dhruvmanila requested a review from MichaReiser as a code owner May 30, 2024 05:54
@dhruvmanila dhruvmanila force-pushed the dhruv/parser-phase-2 branch from 06d6feb to 4da0675 Compare May 30, 2024 06:34
@dhruvmanila dhruvmanila requested a review from AlexWaygood as a code owner May 30, 2024 06:34
@dhruvmanila dhruvmanila force-pushed the dhruv/tokens-range-query branch from 9d6a0d4 to 42531d6 Compare May 30, 2024 06:35
@AlexWaygood AlexWaygood removed their request for review May 30, 2024 07:41
@dhruvmanila dhruvmanila merged commit d7b180d into dhruv/parser-phase-2 May 30, 2024
@dhruvmanila dhruvmanila deleted the dhruv/tokens-range-query branch May 30, 2024 10:05
dhruvmanila added a commit that referenced this pull request May 31, 2024
## Summary

This PR updates the methods on `Tokens` struct to consider the "gap"
between tokens. Additionally, it adds a constraint to the methods which
is that the offsets shouldn't be within the token range otherwise it'll
panic.

## Test Plan

Add unit test cases.
dhruvmanila added a commit that referenced this pull request Jun 3, 2024
## Summary

This PR updates the methods on `Tokens` struct to consider the "gap"
between tokens. Additionally, it adds a constraint to the methods which
is that the offsets shouldn't be within the token range otherwise it'll
panic.

## Test Plan

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

Labels

parser Related to the parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants