-
Notifications
You must be signed in to change notification settings - Fork 184
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 serialization of empty enumerations #4472
Conversation
Found while debugging the array schema serialization bug. Returning `TILEDB_ERR` here prevents the exception wrapper from reporting the exception that was encountered. The fix is obviously to just rethrow the exception instead.
This pull request has been linked to Shortcut Story #36299: Fix serialization of empty enumerations. |
6ea641b
to
bc615c3
Compare
This is an obvious oversight from me when adding tests in the original PR. I managed to test array schema evolution for extending enumerations but never thought to add basic schema serialization tests with empty enmerations.
bc615c3
to
7973a65
Compare
In addition to the unit-test coverage on this PR: validated in sandbox checkout as discussed in team Slack. |
Tested this branch with REST server and works |
@@ -3595,7 +3595,7 @@ int32_t tiledb_deserialize_array_schema( | |||
} catch (...) { | |||
delete *array_schema; | |||
*array_schema = nullptr; | |||
return TILEDB_ERR; | |||
throw; |
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.
Is this change intended? Should we use tapi::CAPIStatusException?
This was an obvious oversight in the original PR. I managed to cover enumeration extension serialization but forgot to include serialization of empty arrays. --- TYPE: BUG DESC: Fix serialization of empty enumerations (cherry picked from commit 9163edf)
This was an obvious oversight in the original PR. I managed to cover enumeration extension serialization but forgot to include serialization of empty arrays. --- TYPE: BUG DESC: Fix serialization of empty enumerations (cherry picked from commit 9163edf)
This was an obvious oversight in the original PR. I managed to cover enumeration extension serialization but forgot to include serialization of empty arrays. --- TYPE: BUG DESC: Fix serialization of empty enumerations
Backport 9163edf from #4472. --- TYPE: NO_HISTORY Co-authored-by: Paul J. Davis <[email protected]>
Backport 9163edf from #4472. --- TYPE: NO_HISTORY Co-authored-by: Paul J. Davis <[email protected]>
This was an obvious oversight in the original PR. I managed to cover enumeration extension serialization but forgot to include serialization of empty arrays.
TYPE: BUG
DESC: Fix serialization of empty enumerations