Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SYMBOL_LIST Segment index out of bounds bug #1473

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

IvoDD
Copy link
Collaborator

@IvoDD IvoDD commented Apr 2, 2024

The check row < row_count() in string_at was problematic for symbol list entries because they have the exception that it is possible for a column to have more rows than segment rows.

That exception is because of the nature of the symbol list refactor in 4.2.0 which needed to remain backwards compatible with old readers.

This change bypasses the check for symbol list entries and directly
calls string_at or scalar_at of the Column.

Reference Issues/PRs

What does this implement or fix?

Any other comments?

Checklist

Checklist for code changes...
  • Have you updated the relevant docstrings, documentation and copyright notice?
  • Is this contribution tested against all ArcticDB's features?
  • Do all exceptions introduced raise appropriate error messages?
  • Are API changes highlighted in the PR description?
  • Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?

@IvoDD IvoDD self-assigned this Apr 2, 2024
@IvoDD IvoDD added the bug Something isn't working label Apr 2, 2024
@IvoDD IvoDD force-pushed the fix-symbol-list-cache-out-of-bounds branch 2 times, most recently from 0ccbf28 to 2ea97a0 Compare April 3, 2024 08:14
The check `row < row_count()` in `string_at` was problematic for symbol
list entries because they have the exception that it is possible for a
column to have more rows than segment rows.

That exception is because of the nature of the symbol list refactor in
4.2.0 which needed to remain backwards compatible with old readers.

This change bypasses the check for symbol list entries and directly
calls string_at or scalar_at of the Column.
@IvoDD IvoDD force-pushed the fix-symbol-list-cache-out-of-bounds branch from 2ea97a0 to d0ceb90 Compare April 3, 2024 08:29
@IvoDD IvoDD merged commit 91cffd6 into master Apr 3, 2024
113 of 114 checks passed
@IvoDD IvoDD deleted the fix-symbol-list-cache-out-of-bounds branch April 3, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants