Skip to content

fix off by one error in nested column range index#13405

Merged
gianm merged 1 commit intoapache:masterfrom
clintropolis:fix-nested-column-range-index-again
Nov 22, 2022
Merged

fix off by one error in nested column range index#13405
gianm merged 1 commit intoapache:masterfrom
clintropolis:fix-nested-column-range-index-again

Conversation

@clintropolis
Copy link
Member

@clintropolis clintropolis commented Nov 22, 2022

Description

Fixes an issue with nested column range index computation which was resulting in an off by 1 on the end index. #13297 almost fixed all of the issues, but as a showcase of how test line and branch coverage just tells you what you want to hear, the test cases were missing a scenario where the end of the range was missing locally, and there were additional global values between the global id of the 'insertion point' of the missing value and the actual global end value. I've added data to the test which covers this case to the string dictionary (which caused a few additional tests to fail prior to the fixes in this PR), as well as additional test cases for range indexes to i think cover all of the scenarios.... i hope 😅


This PR has:

  • been self-reviewed.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • been tested in a test Druid cluster.

@gianm gianm merged commit be4914d into apache:master Nov 22, 2022
@clintropolis clintropolis deleted the fix-nested-column-range-index-again branch November 22, 2022 21:39
clintropolis added a commit to clintropolis/druid that referenced this pull request Nov 23, 2022
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.

3 participants