Skip to content

Accomodate zero buffer size estimate#482

Merged
eddelbuettel merged 3 commits intomasterfrom
de/sc-23256/accomodate_zero_buffer_size_estimate
Nov 10, 2022
Merged

Accomodate zero buffer size estimate#482
eddelbuettel merged 3 commits intomasterfrom
de/sc-23256/accomodate_zero_buffer_size_estimate

Conversation

@eddelbuettel
Copy link
Copy Markdown
Contributor

For attributes added under schema evolution, an estimated buffer size of zero can be returned from TileDB Embedded. The subsequent calculation for a 'best' buffer size to allocate before submitted a query does not deal gracefully with this, and this PR improves the calculation. It also protects two allocation size variables from overflow by passing them as double, this matters only if the user has set a very large memory allocation preference via the available setter function.

@shortcut-integration
Copy link
Copy Markdown

@eddelbuettel
Copy link
Copy Markdown
Contributor Author

The user confirmed on slack that his fix the issue (on read) as expected which may aid in the pending review.

@eddelbuettel eddelbuettel force-pushed the de/sc-23256/accomodate_zero_buffer_size_estimate branch from 7c4072c to 4be3322 Compare November 10, 2022 22:31
@eddelbuettel
Copy link
Copy Markdown
Contributor Author

Rebased, will await another CI run before merge.

@eddelbuettel eddelbuettel merged commit f2a2ac4 into master Nov 10, 2022
@eddelbuettel eddelbuettel deleted the de/sc-23256/accomodate_zero_buffer_size_estimate branch November 10, 2022 23:41
@eddelbuettel eddelbuettel mentioned this pull request Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants