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

Add ability to make array close optional #630

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

eddelbuettel
Copy link
Contributor

This PR adds the ability to open tiledb_array objects with a new option keep_open.

Copy link

This pull request has been linked to Shortcut Story #37998: Permit array to remain open.

@eddelbuettel
Copy link
Contributor Author

I contemplated adding the option to fromDataFrame() too but that is not as obvious as we tend not to have an array handle independent of that array creation (helper) call that is fromDataFrame. So maybe easiest to keep this as is, and hence removing 'draft' status.

@eddelbuettel eddelbuettel marked this pull request as ready for review December 5, 2023 18:22
@eddelbuettel eddelbuettel merged commit 4ce2621 into master Dec 5, 2023
1 check passed
expect_false(tiledb_array_is_open(arr))
arr <- tiledb_array(uri, keep_open=TRUE)
res <- arr[]
expect_true(tiledb_array_is_open(arr))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also check expect_false(...is_open) after manually closing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to sneak that into #631 now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit fb46da2

eddelbuettel added a commit that referenced this pull request Dec 6, 2023
* Correct the incorrectly scaled down buffer size

* Update NEWS and roll micro version [ci skip]

* Augment test added in #630 as suggsted post-merge
@eddelbuettel eddelbuettel deleted the de/sc-37998/optional_close branch December 14, 2023 12:18
@eddelbuettel eddelbuettel mentioned this pull request Dec 21, 2023
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.

5 participants