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

[r] Accomodate legacy validity setting #1100

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

eddelbuettel
Copy link
Contributor

Issue and/or context:

This PR accommodates the new legacy validity mode (for nullable string columns) added in TileDB-Inc/TileDB-R#517

Changes:

A new metadata tag, soma_legacy_validity, is now attached to all arrays created by SOMA objects. By default this value is "false" unless the TileDB-R legacy validity mode was enabled at creation time (i.e., via config option r.legacy_validity_mode). When reading arrays from disk, the AnnotationDataFrame class will check for this tag on initialization and when performing reads or writes. If the tag is present and set to "true", legacy validity mode is enabled globally (as it's not possible to set on a per-array basis). Legacy validity mode is also enabled when reading AnnotationDataFrame arrays that lack the tag, as this indicates the array was created with an older version of the package. These checks are limited to AnnotationDataFrame arrays because the incorrect validity map values only affect nullable string attributes. See TileDB-R's release notes for more information.

Notes for Reviewer:

See PR 99 in tiledbsc and SC 25774.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #25774: Adjust tiledbsc and main-old for legacy validity.

Copy link
Member

@aaronwolen aaronwolen left a comment

Choose a reason for hiding this comment

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

Thanks for carrying this over.

@eddelbuettel eddelbuettel merged commit e2679c7 into main-old Mar 13, 2023
@eddelbuettel eddelbuettel deleted the de/sc-25774/support_legacy_validity branch March 13, 2023 13:08
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