-
Notifications
You must be signed in to change notification settings - Fork 185
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
Backwards compatibility: handle 0 chunk var tiles. #4310
Conversation
This pull request has been linked to Shortcut Story #33480: [TileDB Cloud crash dumps] ReaderBase::compute_chunk_min_max.. |
In arrays with format version earlier than 10, it was possible to create a var file with zero chunks when all cells had an empty string value. This caused segfaults with later versions of the library and is fixed with this change. --- TYPE: BUG DESC: Backwards compatibility: handle 0 chunk var tiles.
69ac408
to
ce00ab9
Compare
I'm having a hard time getting the "comment on file" to stick with GitHub, so one more item. Can we put the code used to generate the test input array as a comment somewhere in code ?This way if we need to recreate it in the future we know how it was originally produced. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after the suggested cmake fix (and the note about not reproducing on M1 as discussed)
Co-authored-by: Isaiah Norton <[email protected]>
Co-authored-by: Isaiah Norton <[email protected]>
* Backwards compatibility: handle 0 chunk var tiles. In arrays with format version earlier than 10, it was possible to create a var file with zero chunks when all cells had an empty string value. This caused segfaults with later versions of the library and is fixed with this change. --- TYPE: BUG DESC: Backwards compatibility: handle 0 chunk var tiles. * Add unit tests. * Adding array creation code. * Move test to regression tests. * Adding note for mac m1. * Update test/regression/CMakeLists.txt Co-authored-by: Isaiah Norton <[email protected]> * Update test/regression/targets/sc-33480.cc Co-authored-by: Isaiah Norton <[email protected]> --------- Co-authored-by: Isaiah Norton <[email protected]> (cherry picked from commit c0e4a0e)
In arrays with format version earlier than 10, it was possible to create a var file with zero chunks when all cells had an empty string value. This caused segfaults with later versions of the library and is fixed with this change.
TYPE: BUG
DESC: Backwards compatibility: handle 0 chunk var tiles.