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

Extend ASCII-queryability workaround #138

Merged
merged 1 commit into from
Jun 1, 2022
Merged

Conversation

johnkerl
Copy link
Member

@johnkerl johnkerl commented Jun 1, 2022

Context: issue #99. (See also: issue #106 and PRs #101 and #117.)

As pointed out by @bkmartinjr in a Slack conversation, the selection of string columns to store as ASCII on #101 was artificial, and likely to cause confusion. The better approach he suggested was to do this to all string attributes.

This PR implements that better approach.

We will need this store-as-ASCII, decode-to-Unicode on read workaround for a couple months or so now pending some non-trivial work in TileDB core to fully support QueryCondition logic on Unicode attributes. As a reminder on the important of this workaround, string attributes are non-queryable unless they are stored as ASCII, until full core-level support is in place; cc @Shelnutt2 and @ihnorton.

Note for @ebezzi and @bkmartinjr -- we will need a full re-ingest once this is merged and once TileDB-Inc/TileDB-Py#1110 is merged and deployed in a TileDB-Py release which we include here in tiledbsc-py.

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.

🚢

@@ -163,15 +172,38 @@ def from_dataframe(self, dataframe: pd.DataFrame, extent: int) -> None:
if self._verbose:
print(f"{self._indent}Re-using existing array {self.uri}")

# Context: https://github.com/single-cell-data/TileDB-SingleCell/issues/99.
# ISSUE:
# TileDB attributes can be stored as Unicode but they are not yet queryable via the TileDB
Copy link
Member

Choose a reason for hiding this comment

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

Great documentation!

@johnkerl johnkerl merged commit 3dcf9ca into main Jun 1, 2022
@johnkerl johnkerl deleted the kerl/adf-ascii-not-unicode branch June 1, 2022 13:24
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