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

Minor interface completion at R level allowing nullable for char vec #537

Merged
merged 2 commits into from Apr 6, 2023

Conversation

eddelbuettel
Copy link
Member

The allocator for variable cell sized character buffers received a new parameter at the C++ level that we at time time did not carry over to the R interface. This PR completes that and offers a new variable (with default) at the R level.

No new code. One Rd file from a recent PR got updated in the roxygen2 run.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #27381: Minor interface extension.

stopifnot(`Argument 'sizeoffset' must be numeric` = is.numeric(sizeoffsets),
`Argument 'sizedata' must be numeric` = is.numeric(sizedata))
bufptr <- libtiledb_query_buffer_var_char_alloc_direct(sizeoffsets, sizedata)
bufptr <- libtiledb_query_buffer_var_char_alloc_direct(sizeoffsets, sizedata, nullable)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add a unit-test case to cover the nullable=FALSE and nullable=TRUE cases in this code change?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have some pending work around arrow support where that may fit in.

@eddelbuettel eddelbuettel merged commit 51f49b2 into master Apr 6, 2023
1 check passed
@eddelbuettel eddelbuettel deleted the de/sc-27381/small_interface_polish branch April 6, 2023 21:33
@eddelbuettel eddelbuettel mentioned this pull request Apr 27, 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.

None yet

3 participants