Skip to content

Minor fix for tiledb_array's attr setter#425

Merged
eddelbuettel merged 2 commits intomasterfrom
aaronwolen/fix-attrs-setter-with-no-attributes
Jun 9, 2022
Merged

Minor fix for tiledb_array's attr setter#425
eddelbuettel merged 2 commits intomasterfrom
aaronwolen/fix-attrs-setter-with-no-attributes

Conversation

@aaronwolen
Copy link
Copy Markdown
Member

@aaronwolen aaronwolen commented Jun 9, 2022

Small fix for using the attr setter to specify no attributes with NA_character_, ie:

attrs(arr) <- NA_character

which previously would trigger any(is.na(pm)) and proceed to the stop condition. I added a check to handle the special case where value is both scalar and NA so it can proceed as expected when attempting to setup a 0-attribute query.

@aaronwolen aaronwolen marked this pull request as ready for review June 9, 2022 16:43
@aaronwolen aaronwolen requested a review from eddelbuettel June 9, 2022 16:43
Copy link
Copy Markdown
Contributor

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

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

Nice catch and thanks for adding a test.

@eddelbuettel
Copy link
Copy Markdown
Contributor

I am going to sneak another one-line commit in here to get rid of spurious print() in another test. Ok?

@eddelbuettel eddelbuettel merged commit 6d4c939 into master Jun 9, 2022
@eddelbuettel eddelbuettel deleted the aaronwolen/fix-attrs-setter-with-no-attributes branch June 9, 2022 17:27
@eddelbuettel eddelbuettel mentioned this pull request Jun 23, 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