-
Notifications
You must be signed in to change notification settings - Fork 187
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
Deletes: adding examples. #3437
Conversation
This adds examples for deletes. --- TYPE: IMPROVEMENT DESC: Deletes: adding examples.
This pull request has been linked to Shortcut Story #20032: Deletes: write example.. |
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, few suggestions on improving readability for the user that would be consulting this example.
// Prepare the vector that will hold the result. | ||
// We take an upper bound on the result size, as we do not | ||
// know a priori how big it is (since the array is sparse) | ||
std::vector<int> data(3); |
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.
wouldn't the upper bound be 16 in that case for a 4x4 array?
Or you mean we don't know if any cells were deleted from our initial data that had a size of 3?
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.
I think the second case in your or question. This was copied from another example.
* | ||
* The MIT License | ||
* | ||
* @copyright Copyright (c) 2018-2022 TileDB, Inc. |
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.
NIT: only 2022
This adds examples for deletes.
TYPE: IMPROVEMENT
DESC: Deletes: adding examples.